Home
last modified time | relevance | path

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

/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/
H A Dhks_chipset_platform_key_hardcoded.c117 struct HksBlob peerHksPubKey = { .size = 0, .data = NULL }; in HksChipsetPlatformDeriveKeyAndEcdh() local
121 ret = MallocAndFillFullHksPublicKey(peerPk, &peerHksPubKey); in HksChipsetPlatformDeriveKeyAndEcdh()
125 ret = HksCryptoHalAgreeKey(&platformPrivateKey, &peerHksPubKey, &ecdhSpec, sharedKey); in HksChipsetPlatformDeriveKeyAndEcdh()
128 (void)(memset_s(peerHksPubKey.data, peerHksPubKey.size, 0, peerHksPubKey.size)); in HksChipsetPlatformDeriveKeyAndEcdh()
130 HKS_FREE_BLOB(peerHksPubKey); in HksChipsetPlatformDeriveKeyAndEcdh()