#include <MHashPPTest.h>
Inheritance diagram for MHashPPTest:
Public Member Functions | |
MHashPPTest (TestSuite *s) | |
void | testMD5 (void) |
void | testCRC32 (void) |
Private Member Functions | |
bool | genericTestMHashPP (hashid a, BitString data, BYTE *shouldbe) |
MHashPPTest::MHashPPTest | ( | TestSuite * | s | ) |
compute a hash using MHashPP and compare it to a reference value
a | the hash algorithm that should be used by MHashPP | |
data | the input of the hash algorithm | |
shouldbe | the reference value of the result of the hash algorithm |
void MHashPPTest::testCRC32 | ( | void | ) |
void MHashPPTest::testMD5 | ( | void | ) |
test output of MHashPP class with MD5 algorithm against the test vectors given in RFC 1321