mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 08:31:15 +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:
parent
282db8e3f8
commit
8f8c0bdfc7
|
@ -541,7 +541,7 @@ static int aes_sca_cm_data_randomize( uint8_t *tbl, uint8_t tbl_len )
|
||||||
int num;
|
int num;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memset( tbl, 0, tbl_len );
|
mbedtls_platform_memset( tbl, 0, tbl_len );
|
||||||
|
|
||||||
#if AES_SCA_CM_ROUNDS != 0
|
#if AES_SCA_CM_ROUNDS != 0
|
||||||
// Randomize SCA CM positions to tbl
|
// Randomize SCA CM positions to tbl
|
||||||
|
|
Loading…
Reference in a new issue