From 7810be273af28fffe6340c93d7395370cedfc656 Mon Sep 17 00:00:00 2001 From: Nir Sonnenschein Date: Mon, 4 Jun 2018 17:48:23 +0300 Subject: [PATCH] Code correction: remove unneeded sizeof --- library/psa_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 5c9a8288e..c4f220988 100755 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -1001,7 +1001,7 @@ psa_status_t psa_mac_abort( psa_mac_operation_t *operation ) if ( operation->ctx.hmac.hmac_ctx != NULL ) { mbedtls_zeroize( operation->ctx.hmac.hmac_ctx, - sizeof( operation->ctx.hmac.block_size * 2 ) ); + operation->ctx.hmac.block_size * 2 ); mbedtls_free( operation->ctx.hmac.hmac_ctx ); operation->ctx.hmac.block_size = 0; }