Home
last modified time | relevance | path

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

/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dhks_hmac_mt.cpp320 …HksBlob macMessage = { .size = HMAC_MESSAGE_SIZE, .data = (uint8_t *)HksMalloc(HMAC_MESSAGE_SIZE) … in LocalHmacScenario() local
321 ASSERT_NE(macMessage.data, nullptr); in LocalHmacScenario()
323 EXPECT_EQ(HmacHmac(&key, digest, message, &macMessage), testCaseParams.hmacResult); in LocalHmacScenario()
326 EXPECT_EQ(macMessage.size, macForHuks->size); in LocalHmacScenario()
327 EXPECT_EQ(HksMemCmp(macMessage.data, macForHuks->data, macForHuks->size), HKS_SUCCESS); in LocalHmacScenario()
334 HksFree(macMessage.data); in LocalHmacScenario()
/base/security/huks/test/reliability/src/
Dpressure_test.cpp833 HksBlob macMessage = { .size = MESSAGE_SIZE, .data = (uint8_t *)HksMalloc(MESSAGE_SIZE) }; variable
834 ASSERT_NE(macMessage.data, nullptr);
836 int32_t ret = HksMac(&authId, paramInSet, &message, &macMessage);
841 HksFree(macMessage.data);
1316 HksBlob macMessage = { .size = MESSAGE_SIZE, .data = (uint8_t *)HksMalloc(MESSAGE_SIZE) }; variable
1317 ASSERT_NE(macMessage.data, nullptr);
1319 int32_t ret = HksMac(&authKey, paramInSet, &message, &macMessage);
1324 HksFree(macMessage.data);
Dapi_pressure_test.cpp774 HksBlob macMessage = { .size = MESSAGE_SIZE, .data = (uint8_t *)HksMalloc(MESSAGE_SIZE) }; in MacTest() local
775 ASSERT_NE(macMessage.data, nullptr); in MacTest()
776 EXPECT_EQ(HksMac(authId, paramInSet, &message, &macMessage), HKS_SUCCESS); in MacTest()
777 HksFree(macMessage.data); in MacTest()