Changed every memcpy to SCA equivalent mbedtls_platform_memcpy
This makes physical attacks more difficult.
diff --git a/library/md4.c b/library/md4.c
index 6a45df6..9c6482e 100644
--- a/library/md4.c
+++ b/library/md4.c
@@ -271,7 +271,7 @@
if( left && ilen >= fill )
{
- memcpy( (void *) (ctx->buffer + left),
+ mbedtls_platform_memcpy( (void *) (ctx->buffer + left),
(void *) input, fill );
if( ( ret = mbedtls_internal_md4_process( ctx, ctx->buffer ) ) != 0 )
@@ -293,7 +293,7 @@
if( ilen > 0 )
{
- memcpy( (void *) (ctx->buffer + left),
+ mbedtls_platform_memcpy( (void *) (ctx->buffer + left),
(void *) input, ilen );
}