Code correction: remove unneeded sizeof

This commit is contained in:
Nir Sonnenschein 2018-06-04 17:48:23 +03:00 committed by itayzafrir
parent dcd636a73f
commit 7810be273a

View file

@ -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;
}