From 6958bd0206ad09aeea9e41a57eebe4555dbb4925 Mon Sep 17 00:00:00 2001 From: Neil Armstrong Date: Wed, 2 Mar 2022 15:16:52 +0100 Subject: [PATCH] Clean aux_out in PSA version of mbedtls_ct_hmac() Signed-off-by: Neil Armstrong --- library/constant_time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/constant_time.c b/library/constant_time.c index c3f0773628..fa1060d7aa 100644 --- a/library/constant_time.c +++ b/library/constant_time.c @@ -550,6 +550,7 @@ cleanup: mbedtls_platform_zeroize( mac_key, MBEDTLS_MD_MAX_BLOCK_SIZE ); mbedtls_platform_zeroize( ikey, MBEDTLS_MD_MAX_BLOCK_SIZE ); mbedtls_platform_zeroize( okey, MBEDTLS_MD_MAX_BLOCK_SIZE ); + 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 );