/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/creds_manager/ |
H A D | das_standard_token_manager.c | 269 static int32_t GenerateSharedKeyAlias(const PakeParams *params, Uint8Buff *sharedKeyAlias) in GenerateSharedKeyAlias() argument 274 sharedKeyAlias); in GenerateSharedKeyAlias() 280 res = ToLowerCase(sharedKeyAlias); in GenerateSharedKeyAlias() 290 const Uint8Buff *peerKeyAlias, Uint8Buff *sharedKeyAlias) in ComputeAndSavePskInner() 318 PAKE_PSK_LEN, sharedKeyAlias); in ComputeAndSavePskInner() 355 Uint8Buff sharedKeyAlias = { sharedKeyAliasVal, PAKE_KEY_ALIAS_LEN }; in ComputeAndSavePskStd() local 356 res = GenerateSharedKeyAlias(params, &sharedKeyAlias); in ComputeAndSavePskStd() 368 return ComputeAndSavePskInner(params, &selfKeyAlias, &peerKeyAlias, &sharedKeyAlias); in ComputeAndSavePskStd() 289 ComputeAndSavePskInner(const PakeParams *params, const Uint8Buff *selfKeyAlias, const Uint8Buff *peerKeyAlias, Uint8Buff *sharedKeyAlias) ComputeAndSavePskInner() argument
|
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/ |
H A D | pub_key_exchange.c | 365 const Uint8Buff *peerKeyAlias, bool isSelfFromUpgrade, Uint8Buff *sharedKeyAlias) in ComputeAndSavePskInner() 378 PAKE_PSK_LEN, sharedKeyAlias); in ComputeAndSavePskInner() 411 Uint8Buff sharedKeyAlias = { sharedKeyAliasVal, PAKE_KEY_ALIAS_LEN }; in ComputeAndSavePsk() local 412 res = GenerateKeyAlias(params, false, true, &sharedKeyAlias); in ComputeAndSavePsk() 424 &sharedKeyAlias); in ComputeAndSavePsk() 364 ComputeAndSavePskInner(int32_t osAccountId, const Uint8Buff *selfKeyAlias, const Uint8Buff *peerKeyAlias, bool isSelfFromUpgrade, Uint8Buff *sharedKeyAlias) ComputeAndSavePskInner() argument
|
/base/security/device_auth/services/identity_manager/src/ |
H A D | cert_operation.c | 677 const char *sharedKeyAlias = GetStringFromJson(output, FIELD_SHARED_SECRET); in GetSharedSecretByPeerCertFromPlugin() local 678 if (sharedKeyAlias == NULL) { in GetSharedSecretByPeerCertFromPlugin() 682 uint32_t sharedKeyAliasLen = HcStrlen(sharedKeyAlias) + 1; in GetSharedSecretByPeerCertFromPlugin() 685 if (memcpy_s(aliasVal, sharedKeyAliasLen, sharedKeyAlias, sharedKeyAliasLen) != EOK) { in GetSharedSecretByPeerCertFromPlugin()
|
H A D | identity_p2p.c | 193 * @param sharedKeyAlias 197 const char *peerServiceType, const Uint8Buff *sharedKeyAlias) in ComputeAndSaveDirectAuthPsk() 240 &selfKeyParams, &peerKeyBuff, ED25519, PAKE_PSK_LEN, sharedKeyAlias); in ComputeAndSaveDirectAuthPsk() 196 ComputeAndSaveDirectAuthPsk(int32_t osAccountId, const char *selfAuthId, const char *peerAuthId, const char *peerServiceType, const Uint8Buff *sharedKeyAlias) ComputeAndSaveDirectAuthPsk() argument
|
H A D | credential_operator.c | 547 Uint8Buff sharedKeyAlias = { sharedKeyAliasVal, PAKE_KEY_ALIAS_LEN }; in ComputeAndSavePsk() local 548 res = GenerateKeyAliasInner(DEFAULT_PACKAGE_NAME, peerServiceType, peerAuthId, KEY_ALIAS_PSK, &sharedKeyAlias); in ComputeAndSavePsk() 559 &selfKeyParams, &peerKeyBuff, ED25519, PAKE_PSK_LEN, &sharedKeyAlias); in ComputeAndSavePsk()
|
H A D | identity_group.c | 670 const TrustedDeviceEntry *peerDeviceEntry, const Uint8Buff *sharedKeyAlias) in ComputeAndSavePsk() 719 &selfKeyAliasParams, &peerKeyBuff, ED25519, PAKE_PSK_LEN, sharedKeyAlias); in ComputeAndSavePsk() 669 ComputeAndSavePsk(int32_t osAccountId, const char *groupId, const TrustedDeviceEntry *peerDeviceEntry, const Uint8Buff *sharedKeyAlias) ComputeAndSavePsk() argument
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 1305 uint32_t sharedKeyLen, const Uint8Buff *sharedKeyAlias) in CheckAgreeWithStorageParams() 1314 CHECK_PTR_RETURN_HAL_ERROR_CODE(sharedKeyAlias, "sharedKeyAlias"); in CheckAgreeWithStorageParams() 1315 CHECK_PTR_RETURN_HAL_ERROR_CODE(sharedKeyAlias->val, "sharedKeyAlias->val"); in CheckAgreeWithStorageParams() 1316 CHECK_LEN_ZERO_RETURN_ERROR_CODE(sharedKeyAlias->length, "sharedKeyAlias->length"); in CheckAgreeWithStorageParams() 1321 static void MoveSharedKeyToCe(const KeyParams *priKeyParams, const struct HksBlob *sharedKeyAlias) in MoveSharedKeyToCe() argument 1325 MoveDeKeyToCe(true, priKeyParams->osAccountId, sharedKeyAlias); in MoveSharedKeyToCe() 1329 Algorithm algo, uint32_t sharedKeyLen, const Uint8Buff *sharedKeyAlias) in AgreeSharedSecretWithStorage() 1304 CheckAgreeWithStorageParams(const KeyParams *priKeyParams, const KeyBuff *pubKeyBuff, uint32_t sharedKeyLen, const Uint8Buff *sharedKeyAlias) CheckAgreeWithStorageParams() argument 1328 AgreeSharedSecretWithStorage(const KeyParams *priKeyParams, const KeyBuff *pubKeyBuff, Algorithm algo, uint32_t sharedKeyLen, const Uint8Buff *sharedKeyAlias) AgreeSharedSecretWithStorage() argument [all...] |
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
H A D | alg_defs.h | 116 Algorithm algo, uint32_t sharedKeyLen, const Uint8Buff *sharedKeyAlias);
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
H A D | hks_chipset_platform_encrypt_test.cpp | 335 struct HksBlob sharedKeyAlias = { sizeof(sharedKeyAliasStr), sharedKeyAliasStr }; in HmacWrapKey() local 348 ret = HksImportKeyForDe(&sharedKeyAlias, importParamSet.s, &sharedKey); in HmacWrapKey() 371 ret = HksMacForDe(&sharedKeyAlias, hmacParamSet.s, &hmacMsg, &wrapKey); in HmacWrapKey() 374 static_cast<void>(HksDeleteKeyForDe(&sharedKeyAlias, nullptr)); in HmacWrapKey()
|