Home
last modified time | relevance | path

Searched refs:outKey (Results 1 – 1 of 1) sorted by relevance

/openthread-3.7.0/tests/unit/
Dtest_hkdf_sha256.cpp134 uint8_t outKey[kMaxOuttKey]; in TestHkdfSha256() local
143 memset(outKey, kFillByte, sizeof(outKey)); in TestHkdfSha256()
149 hkdf.Expand(test->mInfo, test->mInfoLength, outKey, test->mOutKeyLength); in TestHkdfSha256()
151 DumpBuffer("\nCalculated Output Key", outKey, test->mOutKeyLength); in TestHkdfSha256()
153 … VerifyOrQuit(memcmp(outKey, test->mOutKey, test->mOutKeyLength) == 0, "HKDF-SHA-256 failed"); in TestHkdfSha256()
155 for (size_t i = test->mOutKeyLength + 1; i < sizeof(outKey); i++) in TestHkdfSha256()
157 VerifyOrQuit(outKey[i] == kFillByte, "HKDF-SHA-256 wrote beyond output key length"); in TestHkdfSha256()