Searched refs:sharedKeyAliasLen (Results 1 - 2 of 2) sorted by relevance
/base/security/device_auth/services/identity_manager/src/ |
H A D | cert_operation.c | 331 uint32_t sharedKeyAliasLen = HcStrlen(SHARED_KEY_ALIAS) + 1; in GetSharedSecretForAccountInPake() local 332 sharedSecret->val = (uint8_t *)HcMalloc(sharedKeyAliasLen, 0); in GetSharedSecretForAccountInPake() 339 sharedSecret->length = sharedKeyAliasLen; in GetSharedSecretForAccountInPake() 340 (void)memcpy_s(sharedSecret->val, sharedKeyAliasLen, SHARED_KEY_ALIAS, sharedKeyAliasLen); in GetSharedSecretForAccountInPake() 682 uint32_t sharedKeyAliasLen = HcStrlen(sharedKeyAlias) + 1; in GetSharedSecretByPeerCertFromPlugin() local 683 uint8_t *aliasVal = (uint8_t *)HcMalloc(sharedKeyAliasLen, 0); in GetSharedSecretByPeerCertFromPlugin() 685 if (memcpy_s(aliasVal, sharedKeyAliasLen, sharedKeyAlias, sharedKeyAliasLen) != EOK) { in GetSharedSecretByPeerCertFromPlugin() 692 sharedSecret->length = sharedKeyAliasLen; in GetSharedSecretByPeerCertFromPlugin() [all...] |
/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/pake_v2_auth_task/ |
H A D | pake_v2_auth_task_common.c | 110 uint32_t sharedKeyAliasLen = HcStrlen(SHARED_KEY_ALIAS) + 1; in GenerateEcdhSharedKey() local 111 params->pakeParams.psk.val = (uint8_t *)HcMalloc(sharedKeyAliasLen, 0); in GenerateEcdhSharedKey() 117 params->pakeParams.psk.length = sharedKeyAliasLen; in GenerateEcdhSharedKey() 118 (void)memcpy_s(params->pakeParams.psk.val, sharedKeyAliasLen, SHARED_KEY_ALIAS, sharedKeyAliasLen); in GenerateEcdhSharedKey()
|
Completed in 2 milliseconds