Check psa_destroy_key() return in rsa_verify_wrap()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
059a80c212
commit
a33280af6c
@ -228,7 +228,10 @@ static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg,
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
psa_destroy_key( key_id );
|
||||
status = psa_destroy_key( key_id );
|
||||
if( ret == 0 && status != PSA_SUCCESS )
|
||||
ret = mbedtls_psa_err_translate_pk( status );
|
||||
|
||||
return( ret );
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user