Home
last modified time | relevance | path

Searched refs:pskKeyAlias (Results 1 - 5 of 5) sorted by relevance

/base/security/device_auth/services/identity_manager/src/
H A Didentity_p2p.c243 static int32_t GetDirectAuthPskAliasCreateIfNeeded(const CJson *in, Uint8Buff *pskKeyAlias) in GetDirectAuthPskAliasCreateIfNeeded() argument
268 int32_t ret = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, KEY_ALIAS_PSK, &peerAuthIdBuff, pskKeyAlias); in GetDirectAuthPskAliasCreateIfNeeded()
273 LOGI("psk alias: %x %x %x %x****.", pskKeyAlias->val[DEV_AUTH_ZERO], pskKeyAlias->val[DEV_AUTH_ONE], in GetDirectAuthPskAliasCreateIfNeeded()
274 pskKeyAlias->val[DEV_AUTH_TWO], pskKeyAlias->val[DEV_AUTH_THREE]); in GetDirectAuthPskAliasCreateIfNeeded()
275 ret = GetLoaderInstance()->checkKeyExist(pskKeyAlias, false, osAccountId); in GetDirectAuthPskAliasCreateIfNeeded()
277 ret = ComputeAndSaveDirectAuthPsk(osAccountId, selfAuthId, peerAuthId, peerServieType, pskKeyAlias); in GetDirectAuthPskAliasCreateIfNeeded()
296 Uint8Buff pskKeyAlias = { pskKeyAliasVal, PAKE_KEY_ALIAS_LEN }; in GetSharedSecretByUrl() local
297 int32_t ret = GetDirectAuthPskAliasCreateIfNeeded(in, &pskKeyAlias); in GetSharedSecretByUrl()
[all...]
H A Didentity_group.c722 static int32_t GeneratePskAliasAndCheckExist(const CJson *in, const char *groupId, Uint8Buff *pskKeyAlias) in GeneratePskAliasAndCheckExist() argument
745 ret = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, KEY_ALIAS_PSK, &peerAuthIdBuff, pskKeyAlias); in GeneratePskAliasAndCheckExist()
753 ret = ToLowerCase(pskKeyAlias); in GeneratePskAliasAndCheckExist()
760 LOGI("psk alias: %x %x %x %x****.", pskKeyAlias->val[DEV_AUTH_ZERO], pskKeyAlias->val[DEV_AUTH_ONE], in GeneratePskAliasAndCheckExist()
761 pskKeyAlias->val[DEV_AUTH_TWO], pskKeyAlias->val[DEV_AUTH_THREE]); in GeneratePskAliasAndCheckExist()
762 if (GetLoaderInstance()->checkKeyExist(pskKeyAlias, isPeerFromUpgrade, osAccountId) != HC_SUCCESS) { in GeneratePskAliasAndCheckExist()
763 ret = ComputeAndSavePsk(osAccountId, groupId, deviceEntry, pskKeyAlias); in GeneratePskAliasAndCheckExist()
777 Uint8Buff pskKeyAlias in GetSharedSecretForP2pInPake() local
[all...]
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
H A Dhuks_adapter.c714 static int32_t ConstructPseudonymParamSet(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, in ConstructPseudonymParamSet() argument
719 struct HksBlob pskAliasBlob = { pskKeyAlias->length, pskKeyAlias->val }; in ConstructPseudonymParamSet()
755 static int32_t CheckPskParams(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, const Uint8Buff *outPsk) in CheckPskParams() argument
761 const Uint8Buff *inParams[] = { pskKeyAlias, outPsk }; in CheckPskParams()
762 const char *paramTags[] = { "pskKeyAlias", "outPsk" }; in CheckPskParams()
766 static int32_t ComputePseudonymPskInner(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, in ComputePseudonymPskInner() argument
777 int32_t res = ConstructPseudonymParamSet(keyParams, pskKeyAlias, &extInfoBlob, outPsk->length, &paramSet); in ComputePseudonymPskInner()
795 static int32_t ComputePseudonymPsk(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, in ComputePseudonymPsk() argument
798 int32_t res = CheckPskParams(keyParams, pskKeyAlias, outPs in ComputePseudonymPsk()
[all...]
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/
H A Dalg_defs.h94 typedef int32_t (*ComputePseudonymPskFunc)(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias,
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/pake_v1_task/pake_v1_protocol_task/
H A Dpake_v1_protocol_task_common.c264 static int32_t GeneratePskAlias(const PakeParams *params, Uint8Buff *pskKeyAlias) in GeneratePskAlias() argument
269 pskKeyAlias); in GeneratePskAlias()
275 res = ToLowerCase(pskKeyAlias); in GeneratePskAlias()

Completed in 7 milliseconds