summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2012-08-13 16:39:42 +0000
committerAndy Polyakov <appro@openssl.org>2012-08-13 16:39:42 +0000
commit144517299cbebb972ea8607130b506c7d64a2480 (patch)
tree13ad265625f02d0ab18d4a1781434a3a57f79e3f /engines
parent5c468f0c1f9e65e09b2e4881c25edc4cb2da15e6 (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.c2
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];
}