Home
last modified time | relevance | path

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

/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
H A Dhks_mbedtls_x25519.c270 uint8_t *tmpPubKey = (uint8_t *)HksMalloc(keyMaterial->pubKeySize); in X25519KeyMaterialToPub() local
271 HKS_IF_NULL_RETURN(tmpPubKey, HKS_ERROR_MALLOC_FAIL) in X25519KeyMaterialToPub()
275 …if (memcpy_s(tmpPubKey, keyMaterial->pubKeySize, pubKey->data + offset, keyMaterial->pubKeySize) !… in X25519KeyMaterialToPub()
280 ret = EndianSwap(tmpPubKey, keyMaterial->pubKeySize); in X25519KeyMaterialToPub()
283 … ret = mbedtls_mpi_read_binary(&(pub->MBEDTLS_PRIVATE(X)), tmpPubKey, keyMaterial->pubKeySize); in X25519KeyMaterialToPub()
296 HKS_FREE(tmpPubKey); in X25519KeyMaterialToPub()