1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Rename psa_status_to_mbedtls->ssl_psa_status_to_mbedtls and add conversion for PSA_ERROR_INVALID_SIGNATURE

Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemyslaw Stekiel
2022-01-31 09:18:07 +01:00
parent 2cb59df939
commit 89dad93a78
5 changed files with 35 additions and 33 deletions

View File

@ -2056,7 +2056,7 @@ psa_status_t mbedtls_ssl_cipher_to_psa( mbedtls_cipher_type_t mbedtls_cipher_typ
*
* \return corresponding mbedtls error code
*/
static inline int psa_status_to_mbedtls( psa_status_t status )
static inline int ssl_psa_status_to_mbedtls( psa_status_t status )
{
switch( status )
{
@ -2066,6 +2066,8 @@ static inline int psa_status_to_mbedtls( psa_status_t status )
return( MBEDTLS_ERR_CIPHER_ALLOC_FAILED );
case PSA_ERROR_NOT_SUPPORTED:
return( MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE );
case PSA_ERROR_INVALID_SIGNATURE:
return( MBEDTLS_ERR_SSL_INVALID_MAC );
default:
return( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
}