Home
last modified time | relevance | path

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

/ohos5.0/base/security/device_auth/services/protocol/src/iso_protocol/
H A Diso_protocol_common.c93 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.length) != 0) { in IsoServerGenSessionKeyAndCalToken()
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/
H A Dalg_defs.h86 …t32_t (*ComputeHmacFunc)(const KeyParams *keyParams, const Uint8Buff *message, Uint8Buff *outHmac);
89 Uint8Buff *outHmac);
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
H A Dhuks_adapter.c428 const Uint8Buff *inParams[] = { message, outHmac }; in CheckHmacParams()
434 CHECK_LEN_EQUAL_RETURN(outHmac->length, HMAC_LEN, "outHmac->length"); in CheckHmacParams()
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() argument
540 const Uint8Buff *inParams[] = { message, outHmac }; in CheckHmacWithThreeStageParams()
546 CHECK_LEN_EQUAL_RETURN(outHmac->length, HMAC_LEN, "outHmac->length"); in CheckHmacWithThreeStageParams()
584 struct HksBlob hmacBlob = { outHmac->length, outHmac->val }; in ComputeHmacWithThreeStageInner()
596 int32_t res = CheckHmacWithThreeStageParams(keyParams, message, outHmac); in ComputeHmacWithThreeStage()
601 res = ComputeHmacWithThreeStageInner(keyParams, message, outHmac); in ComputeHmacWithThreeStage()
[all …]