Home
last modified time | relevance | path

Searched refs:publicKeyMaterial (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/
H A Dhks_chipset_platform_key_hardcoded.c45 struct KeyMaterialEcc publicKeyMaterial = { in MallocAndFillFullHksPublicKey() local
59 &publicKeyMaterial, sizeof(publicKeyMaterial)); in MallocAndFillFullHksPublicKey()
61 ret = memcpy_s(fullHksPubKey->data + sizeof(publicKeyMaterial), in MallocAndFillFullHksPublicKey()
62 fullHksPubKey->size - sizeof(publicKeyMaterial), in MallocAndFillFullHksPublicKey()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/core/src/
H A Dhks_local_engine.c137 struct HksBlob publicKeyMaterial = { 0, NULL }; in HksLocalAgreeKey() local
138 ret = HksSetKeyToMaterial(spec.algType, true, peerPublicKey, &publicKeyMaterial); in HksLocalAgreeKey()
147 ret = HksCryptoHalAgreeKey(&privateKeyMaterial, &publicKeyMaterial, &spec, agreedKey); in HksLocalAgreeKey()
152 (void)memset_s(publicKeyMaterial.data, publicKeyMaterial.size, 0, publicKeyMaterial.size); in HksLocalAgreeKey()
153 HKS_FREE(publicKeyMaterial.data); in HksLocalAgreeKey()