Home
last modified time | relevance | path

Searched refs:authCodeBuf (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/lite_exchange_task/
H A Diso_server_bind_exchange_task.c118 static int32_t ImportAuthCode(const IsoParams *params, const Uint8Buff *authCodeBuf) in ImportAuthCode() argument
138 …res = params->baseParams.loader->importSymmetricKey(&keyAliasParams, authCodeBuf, KEY_PURPOSE_MAC,… in ImportAuthCode()
152 Uint8Buff authCodeBuf = { authCode, AUTH_CODE_LEN }; in GenAndEncAuthCode() local
153 res = params->baseParams.loader->generateRandom(&authCodeBuf); in GenAndEncAuthCode()
170 …res = params->baseParams.loader->aesGcmEncrypt(&keyParams, &authCodeBuf, &gcmParam, encAuthCodeBuf… in GenAndEncAuthCode()
176 res = ImportAuthCode(params, &authCodeBuf); in GenAndEncAuthCode()
182 FreeAndCleanKey(&authCodeBuf); in GenAndEncAuthCode()
H A Diso_client_bind_exchange_task.c42 const Uint8Buff *nonceBuf, const Uint8Buff *encDataBuf, Uint8Buff *authCodeBuf) in DecAndImportInner() argument
61 res = params->baseParams.loader->aesGcmDecrypt(&keyParams, encDataBuf, &gcmParam, authCodeBuf); in DecAndImportInner()
77 …res = params->baseParams.loader->importSymmetricKey(&keyAliasParams, authCodeBuf, KEY_PURPOSE_MAC,… in DecAndImportInner()
113 Uint8Buff authCodeBuf = { authCode, AUTH_CODE_LEN }; in DecAndImportAuthCode() local
116 res = DecAndImportInner(realTask, params, &nonceBuf, &encDataBuf, &authCodeBuf); in DecAndImportAuthCode()