Use new PSA to mbedtls PK error mapping functions in rsa_sign_wrap()
@@ -238,7 +238,7 @@ static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg,
&key_id );
if( status != PSA_SUCCESS )
{
- ret = mbedtls_psa_err_translate_pk( status );
+ ret = mbedtls_pk_error_from_psa( status );
goto cleanup;
}
@@ -246,7 +246,7 @@ static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg,
sig, sig_size, sig_len );
if( status != PSA_SUCCESS )
{
- ret = mbedtls_psa_err_translate_pk( status );
+ ret = mbedtls_pk_error_from_psa_rsa( status );
goto cleanup;
}
@@ -255,7 +255,7 @@ static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg,
cleanup:
status = psa_destroy_key( key_id );
if( ret == 0 && status != PSA_SUCCESS )
- ret = mbedtls_psa_err_translate_pk( status );
+ ret = mbedtls_pk_error_from_psa( status );
return( ret );
}
