In EC_KEY_set_public_key_affine_coordinates include explicit check to see passed...
[openssl.git] / crypto / des / cfb_enc.c
index 6738e7c0e5a1af9e1167bc8a5e86a9dfe418a061..d8c195e1d6bfd5b6ec8185dde7d00f2a7e1de833 100644 (file)
@@ -57,6 +57,7 @@
  */
 
 #include "e_os.h"
+#include <openssl/crypto.h>
 #include "des_locl.h"
 #include <assert.h>
 
@@ -125,7 +126,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 +169,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 |