mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-01 13:13:28 +00:00
Remove redundant memory initialization
When memory is allocated it is also initialized with 0. Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
251cb632f1
commit
d6441da4c5
@ -919,7 +919,6 @@ void mpi_mod_raw_cond_assign( data_t * input_X,
|
||||
ASSERT_ALLOC( Y, len );
|
||||
|
||||
ASSERT_ALLOC( buff_m, len );
|
||||
memset( buff_m, 0, len );
|
||||
mbedtls_mpi_mod_modulus_init( &m );
|
||||
TEST_ASSERT( mbedtls_mpi_mod_modulus_setup(
|
||||
&m, buff_m, copy_limbs,
|
||||
@ -994,7 +993,6 @@ void mpi_mod_raw_cond_swap( data_t * input_X,
|
||||
ASSERT_ALLOC( tmp_Y, len );
|
||||
|
||||
ASSERT_ALLOC( buff_m, input_len );
|
||||
memset( buff_m, 0, input_len );
|
||||
mbedtls_mpi_mod_modulus_init( &m );
|
||||
TEST_ASSERT( mbedtls_mpi_mod_modulus_setup(
|
||||
&m, buff_m, copy_limbs,
|
||||
|
Loading…
x
Reference in New Issue
Block a user