MCPcopy Create free account
hub / github.com/ElementsProject/elements / TestHMACSHA512

Function TestHMACSHA512

src/test/crypto_tests.cpp:68–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static void TestHMACSHA512(const std::string &hexkey, const std::string &hexin, const std::string &hexout) {
69 std::vector<unsigned char> key = ParseHex(hexkey);
70 TestVector(CHMAC_SHA512(key.data(), key.size()), ParseHex(hexin), ParseHex(hexout));
71}
72
73static void TestAES256(const std::string &hexkey, const std::string &hexin, const std::string &hexout)
74{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 5

ParseHexFunction · 0.85
CHMAC_SHA512Class · 0.85
TestVectorFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected