MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / TestHMACSHA256

Function TestHMACSHA256

src/test/crypto_tests.cpp:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57static void TestRIPEMD160(const std::string &in, const std::string &hexout) { TestVector(CRIPEMD160(), in, ParseHex(hexout));}
58
59static void TestHMACSHA256(const std::string &hexkey, const std::string &hexin, const std::string &hexout) {
60 std::vector<unsigned char> key = ParseHex(hexkey);
61 TestVector(CHMAC_SHA256(key.data(), key.size()), ParseHex(hexin), ParseHex(hexout));
62}
63
64static void TestHMACSHA512(const std::string &hexkey, const std::string &hexin, const std::string &hexout) {
65 std::vector<unsigned char> key = ParseHex(hexkey);

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 5

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

Tested by

no test coverage detected