Searched refs:tmpPubKey (Results 1 – 1 of 1) sorted by relevance
270 uint8_t *tmpPubKey = (uint8_t *)HksMalloc(keyMaterial->pubKeySize); in X25519KeyMaterialToPub() local271 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()