mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-26 03:35:35 +00:00
Map INVALID_PADDING from PSA to MbedTLS error in rsa_decrypt_wrap()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
0d46786034
commit
f47135756c
@ -276,7 +276,14 @@ static int rsa_decrypt_wrap( void *ctx,
|
||||
NULL, 0, output, osize, olen );
|
||||
if( status != PSA_SUCCESS )
|
||||
{
|
||||
ret = mbedtls_psa_err_translate_pk( status );
|
||||
if ( status == PSA_ERROR_INVALID_PADDING )
|
||||
{
|
||||
ret = MBEDTLS_ERR_RSA_INVALID_PADDING;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = mbedtls_psa_err_translate_pk( status );
|
||||
}
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user