aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/chacha20.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/chacha20.c')
-rw-r--r--src/crypto/chacha20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/chacha20.c b/src/crypto/chacha20.c
index 29f7e6b..815d777 100644
--- a/src/crypto/chacha20.c
+++ b/src/crypto/chacha20.c
@@ -137,7 +137,7 @@ static void chacha20_generic(u8 *out, const u8 *in, u32 len, const u32 key[8], c
};
if (out != in)
- memcpy(out, in, len);
+ memmove(out, in, len);
while (len >= CHACHA20_BLOCK_SIZE) {
chacha20_block_generic(buf, x);