diff options
author | Andy Polyakov <appro@openssl.org> | 2005-07-08 16:48:34 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-07-08 16:48:34 +0000 |
commit | 2a824402f3638ffbee72f0f27ab31e2e7c0fcee3 (patch) | |
tree | 3d07bc41c598997206ab1746980b76702b0b999b /crypto/des | |
parent | 86a249fe4ffca828926f60989b6fbffff507a439 (diff) |
DES CFB bug-fix from HEAD.
Diffstat (limited to 'crypto/des')
-rw-r--r-- | crypto/des/cfb_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/des/cfb_enc.c b/crypto/des/cfb_enc.c index 6738e7c0e5..720f29a28e 100644 --- a/crypto/des/cfb_enc.c +++ b/crypto/des/cfb_enc.c @@ -125,7 +125,7 @@ void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, sh[0]=v0, sh[1]=v1, sh[2]=d0, sh[3]=d1; #endif if (rem==0) - memcpy(ovec,ovec+num,8); + memmove(ovec,ovec+num,8); else for(i=0 ; i < 8 ; ++i) ovec[i]=ovec[i+num]<<rem | @@ -168,7 +168,7 @@ void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits, sh[0]=v0, sh[1]=v1, sh[2]=d0, sh[3]=d1; #endif if (rem==0) - memcpy (ovec,ovec+num,8); + memmove(ovec,ovec+num,8); else for(i=0 ; i < 8 ; ++i) ovec[i]=ovec[i+num]<<rem | |