summaryrefslogtreecommitdiffstats
path: root/Modules/_blake2/impl/blake2s-ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_blake2/impl/blake2s-ref.c')
-rw-r--r--Modules/_blake2/impl/blake2s-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_blake2/impl/blake2s-ref.c b/Modules/_blake2/impl/blake2s-ref.c
index b08e72b..6636753 100644
--- a/Modules/_blake2/impl/blake2s-ref.c
+++ b/Modules/_blake2/impl/blake2s-ref.c
@@ -325,7 +325,7 @@ int blake2s_final( blake2s_state *S, uint8_t *out, uint8_t outlen )
blake2s_increment_counter( S, BLAKE2S_BLOCKBYTES );
blake2s_compress( S, S->buf );
S->buflen -= BLAKE2S_BLOCKBYTES;
- memcpy( S->buf, S->buf + BLAKE2S_BLOCKBYTES, S->buflen );
+ memmove( S->buf, S->buf + BLAKE2S_BLOCKBYTES, S->buflen );
}
blake2s_increment_counter( S, ( uint32_t )S->buflen );