mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-27 06:35:22 +00:00
Check psa_destroy_key() return in rsa_decrypt_wrap()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
18f43c7304
commit
f1b564bb8d
@ -283,7 +283,10 @@ static int rsa_decrypt_wrap( void *ctx,
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
cleanup:
|
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 );
|
return( ret );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user