Searched refs:hkdfSaltBuf (Results 1 - 3 of 3) sorted by relevance
/base/security/device_auth/services/protocol/src/iso_protocol/ |
H A D | iso_protocol_common.c | 187 static int IsoCombineHkdfSalt(IsoBaseParams *params, Uint8Buff *hkdfSaltBuf, bool isClient) in IsoCombineHkdfSalt() argument 190 if (memcpy_s(hkdfSaltBuf->val, hkdfSaltBuf->length, params->randSelf.val, params->randSelf.length) != EOK) { in IsoCombineHkdfSalt() 194 if (memcpy_s(hkdfSaltBuf->val + params->randSelf.length, hkdfSaltBuf->length - params->randSelf.length, in IsoCombineHkdfSalt() 200 if (memcpy_s(hkdfSaltBuf->val, hkdfSaltBuf->length, params->randPeer.val, params->randPeer.length) != EOK) { in IsoCombineHkdfSalt() 204 if (memcpy_s(hkdfSaltBuf->val + params->randPeer.length, hkdfSaltBuf->length - params->randPeer.length, in IsoCombineHkdfSalt() 221 Uint8Buff hkdfSaltBuf in IsoGenSessionKey() local [all...] |
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/ |
H A D | iso_protocol.c | 184 static int32_t IsoCombineHkdfSalt(IsoParams *params, Uint8Buff *hkdfSaltBuf, bool isClient) in IsoCombineHkdfSalt() argument 187 if (memcpy_s(hkdfSaltBuf->val, hkdfSaltBuf->length, params->randSelf.val, params->randSelf.length) != EOK) { in IsoCombineHkdfSalt() 191 if (memcpy_s(hkdfSaltBuf->val + params->randSelf.length, hkdfSaltBuf->length - params->randSelf.length, in IsoCombineHkdfSalt() 197 if (memcpy_s(hkdfSaltBuf->val, hkdfSaltBuf->length, params->randPeer.val, params->randPeer.length) != EOK) { in IsoCombineHkdfSalt() 201 if (memcpy_s(hkdfSaltBuf->val + params->randPeer.length, hkdfSaltBuf->length - params->randPeer.length, in IsoCombineHkdfSalt() 218 Uint8Buff hkdfSaltBuf in IsoGenSessionKey() local [all...] |
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_task_common/ |
H A D | iso_task_common.c | 25 static int32_t ComputeHkdfByParams(const IsoParams *params, const Uint8Buff *hkdfSaltBuf, Uint8Buff *returnKeyBuf) in ComputeHkdfByParams() argument 33 return params->baseParams.loader->computeHkdf(&keyParam, hkdfSaltBuf, &keyInfoBuf, returnKeyBuf); in ComputeHkdfByParams() 71 Uint8Buff hkdfSaltBuf = { hkdfSalt, hkdfSaltLen }; in GenerateReturnKey() local 73 res = ComputeHkdfByParams(params, &hkdfSaltBuf, &returnKeyBuf); in GenerateReturnKey()
|
Completed in 3 milliseconds