Home
last modified time | relevance | path

Searched refs:hkdfSalt (Results 1 - 3 of 3) sorted by relevance

/base/security/device_auth/services/protocol/src/iso_protocol/
H A Diso_protocol_common.c216 uint8_t *hkdfSalt = (uint8_t *)HcMalloc(hkdfSaltLen, 0); in IsoGenSessionKey() local
217 if (hkdfSalt == NULL) { in IsoGenSessionKey()
218 LOGE("Malloc for hkdfSalt failed."); in IsoGenSessionKey()
221 Uint8Buff hkdfSaltBuf = { hkdfSalt, hkdfSaltLen }; in IsoGenSessionKey()
225 HcFree(hkdfSalt); in IsoGenSessionKey()
236 HcFree(hkdfSalt); in IsoGenSessionKey()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_task_common/
H A Diso_task_common.c40 uint8_t *hkdfSalt = (uint8_t *)HcMalloc(hkdfSaltLen, 0); in GenerateReturnKey() local
41 if (hkdfSalt == NULL) { in GenerateReturnKey()
45 if (memcpy_s(hkdfSalt, hkdfSaltLen, params->baseParams.randSelf.val, in GenerateReturnKey()
51 if (memcpy_s(hkdfSalt + params->baseParams.randSelf.length, hkdfSaltLen - params->baseParams.randSelf.length, in GenerateReturnKey()
58 if (memcpy_s(hkdfSalt, hkdfSaltLen, params->baseParams.randPeer.val, in GenerateReturnKey()
64 if (memcpy_s(hkdfSalt + params->baseParams.randPeer.length, hkdfSaltLen - params->baseParams.randPeer.length, in GenerateReturnKey()
71 Uint8Buff hkdfSaltBuf = { hkdfSalt, hkdfSaltLen }; in GenerateReturnKey()
80 HcFree(hkdfSalt); in GenerateReturnKey()
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
H A Diso_protocol.c213 uint8_t *hkdfSalt = (uint8_t *)HcMalloc(hkdfSaltLen, 0); in IsoGenSessionKey() local
214 if (hkdfSalt == NULL) { in IsoGenSessionKey()
215 LOGE("Malloc for hkdfSalt failed."); in IsoGenSessionKey()
218 Uint8Buff hkdfSaltBuf = { hkdfSalt, hkdfSaltLen }; in IsoGenSessionKey()
222 HcFree(hkdfSalt); in IsoGenSessionKey()
234 HcFree(hkdfSalt); in IsoGenSessionKey()

Completed in 4 milliseconds