From 47c1bc0458dd91644a59f05d249d111d842d5802 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 20 Mar 2018 17:55:04 +0100 Subject: [PATCH] Correct some return codes --- library/psa_crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 81da8cef0..c93da95b9 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -588,7 +588,7 @@ static psa_algorithm_t mbedtls_md_alg_to_psa( mbedtls_md_type_t md_alg ) case MBEDTLS_MD_RIPEMD160: return( PSA_ALG_RIPEMD160 ); default: - return( MBEDTLS_MD_NOT_SUPPORTED ); + return( 0 ); } } #endif @@ -1039,7 +1039,7 @@ psa_status_t psa_mac_start( psa_mac_operation_t *operation, return( mbedtls_to_psa_error( ret ) ); } operation->key_set = 1; - return( 0 ); + return( PSA_SUCCESS ); } psa_status_t psa_mac_update( psa_mac_operation_t *operation,