Searched refs:outHmac (Results 1 - 3 of 3) sorted by relevance
/base/security/device_auth/services/protocol/src/iso_protocol/ |
H A D | iso_protocol_common.c | 93 static int IsoCalSelfToken(const IsoBaseParams *params, Uint8Buff *outHmac) in IsoCalSelfToken() argument 130 res = params->loader->computeHmac(&keyParams, &messageBuf, outHmac); in IsoCalSelfToken() 267 Uint8Buff outHmac = { hmacPeer, sizeof(hmacPeer) }; in IsoClientCheckAndGenToken() local 268 int res = IsoCalSelfToken(params, &outHmac); in IsoClientCheckAndGenToken() 274 if (memcmp(peerToken->val, outHmac.val, outHmac.length) != 0) { in IsoClientCheckAndGenToken() 363 Uint8Buff outHmac = { hmacPeer, sizeof(hmacPeer) }; in IsoServerGenSessionKeyAndCalToken() local 364 int res = IsoCalSelfToken(params, &outHmac); in IsoServerGenSessionKeyAndCalToken() 370 if (memcmp(tokenFromPeer->val, outHmac.val, outHmac in IsoServerGenSessionKeyAndCalToken() [all...] |
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
H A D | alg_defs.h | 86 typedef int32_t (*ComputeHmacFunc)(const KeyParams *keyParams, const Uint8Buff *message, Uint8Buff *outHmac); 89 Uint8Buff *outHmac);
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 422 static int32_t CheckHmacParams(const KeyParams *keyParams, const Uint8Buff *message, const Uint8Buff *outHmac) in CheckHmacParams() argument 428 const Uint8Buff *inParams[] = { message, outHmac }; in CheckHmacParams() 429 const char *paramTags[] = { "message", "outHmac" }; in CheckHmacParams() 434 CHECK_LEN_EQUAL_RETURN(outHmac->length, HMAC_LEN, "outHmac->length"); in CheckHmacParams() 438 static int32_t ComputeHmac(const KeyParams *keyParams, const Uint8Buff *message, Uint8Buff *outHmac) in ComputeHmac() argument 440 int32_t res = CheckHmacParams(keyParams, message, outHmac); in ComputeHmac() 458 struct HksBlob hmacBlob = { outHmac->length, outHmac->val }; in ComputeHmac() 534 const Uint8Buff *outHmac) in CheckHmacWithThreeStageParams() 533 CheckHmacWithThreeStageParams(const KeyParams *keyParams, const Uint8Buff *message, const Uint8Buff *outHmac) CheckHmacWithThreeStageParams() argument 550 ComputeHmacWithThreeStageInner(const KeyParams *keyParams, const Uint8Buff *message, Uint8Buff *outHmac) ComputeHmacWithThreeStageInner() argument 594 ComputeHmacWithThreeStage(const KeyParams *keyParams, const Uint8Buff *message, Uint8Buff *outHmac) ComputeHmacWithThreeStage() argument [all...] |
Completed in 4 milliseconds