Home
last modified time | relevance | path

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

/base/security/device_auth/services/mk_agree/src/
H A Dkey_manager.c272 Uint8Buff pskBuff = { NULL, 0 }; in GeneratePseudonymPsk() local
273 if (InitUint8Buff(&pskBuff, MK_LEN) != HC_SUCCESS) { in GeneratePseudonymPsk()
277 res = KeyDerivation(osAccountId, &mkAliasBuff, salt, true, &pskBuff); in GeneratePseudonymPsk()
280 FreeUint8Buff(&pskBuff); in GeneratePseudonymPsk()
284 res = GetLoaderInstance()->importSymmetricKey(&keyParams, &pskBuff, KEY_PURPOSE_MAC, NULL); in GeneratePseudonymPsk()
285 ClearFreeUint8Buff(&pskBuff); in GeneratePseudonymPsk()
/base/security/device_auth/services/identity_manager/src/
H A Didentity_p2p.c309 Uint8Buff pskBuff = { pskVal, PAKE_PSK_LEN }; in GetSharedSecretByUrl() local
312 ret = GetLoaderInstance()->computeHkdf(&keyAliasParams, &nonceBuff, &keyInfo, &pskBuff); in GetSharedSecretByUrl()
317 ret = ConvertPsk(&pskBuff, sharedSecret); in GetSharedSecretByUrl()
H A Didentity_group.c788 Uint8Buff pskBuff = { pskVal, PAKE_PSK_LEN }; in GetSharedSecretForP2pInPake() local
805 ret = GetLoaderInstance()->computeHkdf(&keyAliasParams, &nonceBuff, &keyInfo, &pskBuff); in GetSharedSecretForP2pInPake()
813 ret = ConvertPsk(&pskBuff, sharedSecret); in GetSharedSecretForP2pInPake()

Completed in 5 milliseconds