projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce5ae63
)
Use memmove instead of memcpy.
author
John Foley
<foleyj@cisco.com>
Fri, 11 Sep 2015 23:11:23 +0000
(
00:11
+0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Fri, 11 Sep 2015 23:11:23 +0000
(
00:11
+0100)
PR#4036
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
crypto/modes/wrap128.c
patch
|
blob
|
history
diff --git
a/crypto/modes/wrap128.c
b/crypto/modes/wrap128.c
index 4dcaf0326fa8dab719180bf1fd87ad3c98238ea5..384978371af2a0c6b0123566233f3f3a2dae9fed 100644
(file)
--- a/
crypto/modes/wrap128.c
+++ b/
crypto/modes/wrap128.c
@@
-76,7
+76,7
@@
size_t CRYPTO_128_wrap(void *key, const unsigned char *iv,
return 0;
A = B;
t = 1;
- mem
cpy
(out + 8, in, inlen);
+ mem
move
(out + 8, in, inlen);
if (!iv)
iv = default_iv;
@@
-113,7
+113,7
@@
size_t CRYPTO_128_unwrap(void *key, const unsigned char *iv,
A = B;
t = 6 * (inlen >> 3);
memcpy(A, in, 8);
- mem
cpy
(out, in + 8, inlen);
+ mem
move
(out, in + 8, inlen);
for (j = 0; j < 6; j++) {
R = out + inlen - 8;
for (i = 0; i < inlen; i += 8, t--, R -= 8) {