Home
last modified time | relevance | path

Searched refs:pkSize (Results 1 - 2 of 2) sorted by relevance

/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/pake_v2_auth_task/
H A Dpake_v2_auth_task_common.c276 uint32_t pkSize = HcStrlen(devicePk) / BYTE_TO_HEX_OPER_LENGTH; in GetPeerPkFromPkInfo() local
277 params->pkPeerBuff.val = (uint8_t *)HcMalloc(pkSize, 0); in GetPeerPkFromPkInfo()
283 if (GetByteFromJson(info, FIELD_DEVICE_PK, params->pkPeerBuff.val, pkSize) != HC_SUCCESS) { in GetPeerPkFromPkInfo()
291 params->pkPeerBuff.length = pkSize; in GetPeerPkFromPkInfo()
/base/security/device_auth/services/identity_manager/src/
H A Dcert_operation.c292 uint32_t pkSize = HcStrlen(devicePk) / BYTE_TO_HEX_OPER_LENGTH; in GetPeerPubKeyFromCert() local
293 peerPkBuff->val = (uint8_t *)HcMalloc(pkSize, 0); in GetPeerPubKeyFromCert()
299 if (GetByteFromJson(pkInfoPeer, FIELD_DEVICE_PK, peerPkBuff->val, pkSize) != HC_SUCCESS) { in GetPeerPubKeyFromCert()
306 peerPkBuff->length = pkSize; in GetPeerPubKeyFromCert()

Completed in 2 milliseconds