Remove calling to "psa_crypto_init()"

No need to call psa_crypto_init before crypto operations
we assume init already called before. if not an error will return.
pull/9668/head
Moran Peker 2019-02-25 11:11:47 +02:00 committed by Moran Peker
parent 2e7738b8eb
commit 92a9b3f736
1 changed files with 0 additions and 5 deletions

View File

@ -72,11 +72,6 @@ static enum tfm_plat_err_t attest_public_key_sha256(uint32_t *size, uint8_t *buf
enum tfm_plat_err_t status = TFM_PLAT_ERR_SUCCESS;
psa_hash_operation_t hash_handle;
crypto_ret = psa_crypto_init();
if (crypto_ret != PSA_SUCCESS) {
return TFM_PLAT_ERR_SYSTEM_ERR;
}
crypto_ret = psa_open_key(PSA_KEY_LIFETIME_PERSISTENT, key_id, &handle);
if (crypto_ret != PSA_SUCCESS) {
return TFM_PLAT_ERR_SYSTEM_ERR;