Home
last modified time | relevance | path

Searched refs:keyAliasBuff (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/
H A Ddas_task_common.c205 Uint8Buff keyAliasBuff = { NULL, 0 }; in CombineKeyAlias() local
207 keyAliasBuff.val = (uint8_t *)HcMalloc(keyAliasBuff.length, 0); in CombineKeyAlias()
208 if (keyAliasBuff.val == NULL) { in CombineKeyAlias()
213 uint32_t totalLen = keyAliasBuff.length; in CombineKeyAlias()
235 res = GetLoaderInstance()->sha256(&keyAliasBuff, keyAliasHash); in CombineKeyAlias()
241 HcFree(keyAliasBuff.val); in CombineKeyAlias()
248 Uint8Buff keyAliasBuff = { NULL, 0 }; in CombineKeyAliasForPseudonymPsk() local
250 keyAliasBuff.val = (uint8_t *)HcMalloc(keyAliasBuff.length, 0); in CombineKeyAliasForPseudonymPsk()
251 if (keyAliasBuff.val == NULL) { in CombineKeyAliasForPseudonymPsk()
256 uint32_t totalLen = keyAliasBuff.length; in CombineKeyAliasForPseudonymPsk()
[all …]
/ohos5.0/base/security/device_auth/services/identity_manager/src/
H A Dcredential_operator.c69 Uint8Buff keyAliasBuff = { NULL, 0 }; in CombineKeyAlias() local
71 keyAliasBuff.val = (uint8_t *)HcMalloc(keyAliasBuff.length, 0); in CombineKeyAlias()
72 if (keyAliasBuff.val == NULL) { in CombineKeyAlias()
76 uint32_t totalLen = keyAliasBuff.length; in CombineKeyAlias()
95 res = GetLoaderInstance()->sha256(&keyAliasBuff, keyAliasHash); in CombineKeyAlias()
101 HcFree(keyAliasBuff.val); in CombineKeyAlias()
379 Uint8Buff keyAliasBuff = { keyAliasVal, PAKE_KEY_ALIAS_LEN }; in IsKeyExistReturnAliasIfNeeded() local
381 keyType, &keyAliasBuff); in IsKeyExistReturnAliasIfNeeded()
390 … (memcpy_s(outKeyAlias->val, outKeyAlias->length, keyAliasBuff.val, keyAliasBuff.length) != EOK)) { in IsKeyExistReturnAliasIfNeeded()
647 res = CheckImportConditions(param, &keyAliasBuff); in ImportCredential()
[all …]
H A Didentity_group.c453 …atic int32_t GenerateKeyAliasForIso(const TrustedDeviceEntry *deviceEntry, Uint8Buff *keyAliasBuff) in GenerateKeyAliasForIso() argument
464 …2_t ret = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, keyType, &peerAuthIdBuff, keyAliasBuff); in GenerateKeyAliasForIso()
470 ret = ToLowerCase(keyAliasBuff); in GenerateKeyAliasForIso()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/creds_manager/
H A Ddas_standard_token_manager.c27 Uint8Buff keyAliasBuff = { keyAliasVal, PAKE_KEY_ALIAS_LEN }; in RegisterLocalIdentityStd() local
29 …nt32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, keyType, &authIdBuff, &keyAliasBuff); in RegisterLocalIdentityStd()
36 res = loader->checkKeyExist(&keyAliasBuff, false, params->osAccountId); in RegisterLocalIdentityStd()
43 …KeyParams keyParams = { { keyAliasBuff.val, keyAliasBuff.length, true }, false, params->osAccountI… in RegisterLocalIdentityStd()
377 Uint8Buff keyAliasBuff = { keyAliasVal, PAKE_KEY_ALIAS_LEN }; in GetPublicKeyStd() local
379 …nt32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, keyType, &authIdBuff, &keyAliasBuff); in GetPublicKeyStd()
387 res = loader->checkKeyExist(&keyAliasBuff, false, params->osAccountId); in GetPublicKeyStd()
390 res = loader->checkKeyExist(&keyAliasBuff, true, params->osAccountId); in GetPublicKeyStd()
392 res = ToLowerCase(&keyAliasBuff); in GetPublicKeyStd()
397 res = loader->checkKeyExist(&keyAliasBuff, true, params->osAccountId); in GetPublicKeyStd()
[all …]
/ohos5.0/base/security/device_auth/services/mk_agree/src/
H A Dkey_manager.c164 Uint8Buff keyAliasBuff = { keyAlias, PAKE_KEY_ALIAS_LEN }; in GenerateDeviceKeyPair() local
165 int32_t res = GenerateDevKeyAlias(&keyAliasBuff); in GenerateDeviceKeyPair()
170 if (GetLoaderInstance()->checkKeyExist(&keyAliasBuff, false, osAccountId) == HC_SUCCESS) { in GenerateDeviceKeyPair()
183 KeyParams keyParams = { { keyAliasBuff.val, keyAliasBuff.length, true }, false, osAccountId }; in GenerateDeviceKeyPair()
378 Uint8Buff keyAliasBuff = { keyAlias, PAKE_KEY_ALIAS_LEN }; in GetDevicePubKey() local
379 int32_t res = GenerateDevKeyAlias(&keyAliasBuff); in GetDevicePubKey()
384 KeyParams keyParams = { { keyAliasBuff.val, keyAliasBuff.length, true }, false, osAccountId }; in GetDevicePubKey()
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_task_common/
H A Diso_task_common.c262 static int32_t GenerateKeyAliasForIso(const IsoParams *params, Uint8Buff *keyAliasBuff) in GenerateKeyAliasForIso() argument
269 keyAliasBuff); in GenerateKeyAliasForIso()
273 keyAliasBuff); in GenerateKeyAliasForIso()
280 res = ToLowerCase(keyAliasBuff); in GenerateKeyAliasForIso()
293 Uint8Buff keyAliasBuff = { keyAlias, ISO_KEY_ALIAS_LEN }; in DeleteAuthCode() local
295 keyAliasBuff.val = upgradeKeyAlias; in DeleteAuthCode()
296 keyAliasBuff.length = ISO_UPGRADE_KEY_ALIAS_LEN; in DeleteAuthCode()
298 int32_t res = GenerateKeyAliasForIso(params, &keyAliasBuff); in DeleteAuthCode()
303 …LOGI("AuthCode alias(HEX): %x%x%x%x****.", keyAliasBuff.val[DEV_AUTH_ZERO], keyAliasBuff.val[DEV_A… in DeleteAuthCode()
304 keyAliasBuff.val[DEV_AUTH_TWO], keyAliasBuff.val[DEV_AUTH_THREE]); in DeleteAuthCode()
[all …]