From ae57cfd3e7f4e6cd87f8ad3d96b8e47c3e5457f7 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Thu, 17 Mar 2022 16:35:45 +0100 Subject: [PATCH] Use psa_ssl_status_to_mbedtls in PSA version of mbedtls_ct_hmac() Signed-off-by: Neil Armstrong --- library/constant_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/constant_time.c b/library/constant_time.c index 7c597ebe04..6532de009d 100644 --- a/library/constant_time.c +++ b/library/constant_time.c @@ -551,7 +551,7 @@ cleanup: mbedtls_platform_zeroize( aux_out, MBEDTLS_MD_MAX_SIZE ); psa_hash_abort( &operation ); psa_hash_abort( &aux_operation ); - return( status == PSA_SUCCESS ? 0 : MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED ); + return( psa_ssl_status_to_mbedtls( status ) ); } #else int mbedtls_ct_hmac( mbedtls_md_context_t *ctx,