diff options
author | Andy Polyakov <appro@openssl.org> | 2012-08-13 16:38:43 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-08-13 16:38:43 +0000 |
commit | f9b48d60f29c2d18bb85533a7a7ee48f4dc9ca4d (patch) | |
tree | 85a60af5efb779bf09e940138e0b2b6fa324e33e /engines | |
parent | 5c2912766624f5839c0497f2fa6d52acb98d4e73 (diff) |
gosthash.c: use memmove in circle_xor8, as input pointers can be equal
[from HEAD].
PR: 2858
Diffstat (limited to 'engines')
-rw-r--r-- | engines/ccgost/gosthash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/ccgost/gosthash.c b/engines/ccgost/gosthash.c index a5c0662ffc..8c278aa645 100644 --- a/engines/ccgost/gosthash.c +++ b/engines/ccgost/gosthash.c @@ -42,7 +42,7 @@ static void circle_xor8 (const byte *w, byte *k) byte buf[8]; int i; memcpy(buf,w,8); - memcpy(k,w+8,24); + memmove(k,w+8,24); for(i=0;i<8;i++) k[i+24]=buf[i]^k[i]; } |