mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
2e7738b8eb
commit
92a9b3f736
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue