MCPcopy Create free account
hub / github.com/LUX-Core/lux / HashTestTuple

Class HashTestTuple

src/cryptopp/validat3.cpp:53–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51USING_NAMESPACE(std)
52
53struct HashTestTuple
54{
55 HashTestTuple(const char *input, const char *output, unsigned int repeatTimes=1)
56 : input((byte *)input), output((byte *)output), inputLen(strlen(input)), repeatTimes(repeatTimes) {}
57
58 HashTestTuple(const char *input, unsigned int inputLen, const char *output, unsigned int repeatTimes)
59 : input((byte *)input), output((byte *)output), inputLen(inputLen), repeatTimes(repeatTimes) {}
60
61 const byte *input, *output;
62 size_t inputLen;
63 unsigned int repeatTimes;
64};
65
66bool HashModuleTest(HashTransformation &md, const HashTestTuple *testSet, unsigned int testSetSize)
67{

Callers 9

ValidateCRC32Function · 0.85
ValidateCRC32CFunction · 0.85
ValidateAdler32Function · 0.85
ValidateMD2Function · 0.85
ValidateMD4Function · 0.85
ValidateMD5Function · 0.85
ValidateTigerFunction · 0.85
ValidateRIPEMDFunction · 0.85
ValidateHAVALFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected