Home
last modified time | relevance | path

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

/ohos5.0/base/security/device_auth/services/protocol/src/iso_protocol/
H A Diso_protocol_common.c187 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)… in IsoCombineHkdfSalt()
194 …if (memcpy_s(hkdfSaltBuf->val + params->randSelf.length, hkdfSaltBuf->length - params->randSelf.le… in IsoCombineHkdfSalt()
200 …if (memcpy_s(hkdfSaltBuf->val, hkdfSaltBuf->length, params->randPeer.val, params->randPeer.length)… in IsoCombineHkdfSalt()
204 …if (memcpy_s(hkdfSaltBuf->val + params->randPeer.length, hkdfSaltBuf->length - params->randPeer.le… in IsoCombineHkdfSalt()
221 Uint8Buff hkdfSaltBuf = { hkdfSalt, hkdfSaltLen }; in IsoGenSessionKey() local
222 int res = IsoCombineHkdfSalt(params, &hkdfSaltBuf, isClient); in IsoGenSessionKey()
231 res = params->loader->computeHkdf(&keyParams, &hkdfSaltBuf, &keyInfoBuf, &params->sessionKey); in IsoGenSessionKey()
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
H A Diso_protocol.c184 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)… in IsoCombineHkdfSalt()
191 …if (memcpy_s(hkdfSaltBuf->val + params->randSelf.length, hkdfSaltBuf->length - params->randSelf.le… in IsoCombineHkdfSalt()
197 …if (memcpy_s(hkdfSaltBuf->val, hkdfSaltBuf->length, params->randPeer.val, params->randPeer.length)… in IsoCombineHkdfSalt()
201 …if (memcpy_s(hkdfSaltBuf->val + params->randPeer.length, hkdfSaltBuf->length - params->randPeer.le… in IsoCombineHkdfSalt()
218 Uint8Buff hkdfSaltBuf = { hkdfSalt, hkdfSaltLen }; in IsoGenSessionKey() local
219 int32_t res = IsoCombineHkdfSalt(&impl->params, &hkdfSaltBuf, isClient); in IsoGenSessionKey()
233 res = GetLoaderInstance()->computeHkdf(&keyParams, &hkdfSaltBuf, &keyInfoBuf, &sessionKey); in IsoGenSessionKey()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_task_common/
H A Diso_task_common.c25 static int32_t ComputeHkdfByParams(const IsoParams *params, const Uint8Buff *hkdfSaltBuf, Uint8Buff… 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()