Use mbedtls_platform_memset in data_randomize

More secure memset should be used here instead
of standard memset.
This commit is contained in:
Jarno Lamsa 2020-01-08 15:07:41 +02:00
parent 282db8e3f8
commit 8f8c0bdfc7

View File

@ -541,7 +541,7 @@ static int aes_sca_cm_data_randomize( uint8_t *tbl, uint8_t tbl_len )
int num;
#endif
memset( tbl, 0, tbl_len );
mbedtls_platform_memset( tbl, 0, tbl_len );
#if AES_SCA_CM_ROUNDS != 0
// Randomize SCA CM positions to tbl