commit | 7810be273af28fffe6340c93d7395370cedfc656 | [log] [tgz] |
---|---|---|
author | Nir Sonnenschein <nir.sonnenschein@arm.com> | Mon Jun 04 17:48:23 2018 +0300 |
committer | itayzafrir <itay.zafrir@arm.com> | Wed Sep 12 16:13:49 2018 +0300 |
tree | 908141841cdf1a84f9156be3712f747fab513f25 | |
parent | dcd636a73f2b61b8ab6681049f6731eee3439249 [diff] [blame] |
Code correction: remove unneeded sizeof
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 5c9a828..c4f2209 100755 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -1001,7 +1001,7 @@ 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; }