commit | 91d79387619e0a4fe6a0cc6e045102820b1a18d1 | [log] [tgz] |
---|---|---|
author | Teppo Järvelin <teppo.jarvelin@arm.com> | Wed Oct 02 09:09:31 2019 +0300 |
committer | Teppo Järvelin <teppo.jarvelin@arm.com> | Wed Oct 30 14:07:04 2019 +0200 |
tree | 2b9aeda258513183faab54cdc313c91e5ce989ff | |
parent | aeecf04be3ab7939a93ad6ad613a1f74a56c21b7 [diff] [blame] |
Changed every memcpy to SCA equivalent mbedtls_platform_memcpy This makes physical attacks more difficult.
diff --git a/library/arc4.c b/library/arc4.c index eeebbdc..e936fc5 100644 --- a/library/arc4.c +++ b/library/arc4.c
@@ -169,7 +169,7 @@ if( verbose != 0 ) mbedtls_printf( " ARC4 test #%d: ", i + 1 ); - memcpy( ibuf, arc4_test_pt[i], 8 ); + mbedtls_platform_memcpy( ibuf, arc4_test_pt[i], 8 ); mbedtls_arc4_setup( &ctx, arc4_test_key[i], 8 ); mbedtls_arc4_crypt( &ctx, 8, ibuf, obuf );