mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-06 07:42:49 +00:00
Use mbedtls_platform_memset in data_randomize
More secure memset should be used here instead of standard memset.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user