change bcopy to memcpy
authorJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 15:50:01 +0000 (15:50 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 8 Nov 1990 15:50:01 +0000 (15:50 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1436 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/des/cksum.c
src/lib/crypto/des/des.c
src/lib/crypto/des/new_rn_key.c

index 8bf4db2242339b1f6c04de210e0e476a27be1ed7..ae24a917ad95d5dabf3df18854ed3280628a6714 100644 (file)
@@ -68,8 +68,8 @@ mit_des_cbc_cksum(in,out,length,key,iv)
     t_in_p = (unsigned char *) t_input;
 #ifdef MUSTALIGN
     if ((long) ivec & 3) {
-       bcopy((char *)ivec++,(char *)&t_output[0],sizeof(t_output[0]));
-       bcopy((char *)ivec,(char *)&t_output[1],sizeof(t_output[1]));
+       memcpy((char *)&t_output[0],(char *)ivec++,sizeof(t_output[0]));
+       memcpy((char *)&t_output[1],(char *)ivec,sizeof(t_output[1]));
     }
     else
 #endif
@@ -82,8 +82,8 @@ mit_des_cbc_cksum(in,out,length,key,iv)
        /* get input */
 #ifdef MUSTALIGN
        if ((long) input & 3) {
-           bcopy((char *)input++,(char *)&t_input[0],sizeof(t_input[0]));
-           bcopy((char *)input++,(char *)&t_input[1],sizeof(t_input[1]));
+           memcpy((char *)&t_input[0],(char *)input++,sizeof(t_input[0]));
+           memcpy((char *)&t_input[1],(char *)input++,sizeof(t_input[1]));
        }
        else
 #endif
@@ -120,8 +120,8 @@ mit_des_cbc_cksum(in,out,length,key,iv)
     /* copy temp output and save it for checksum */
 #ifdef MUSTALIGN
     if ((long) output & 3) {
-       bcopy((char *)&t_output[0],(char *)output++,sizeof(t_output[0]));
-       bcopy((char *)&t_output[1],(char *)output,sizeof(t_output[1]));
+       memcpy((char *)output++,(char *)&t_output[0],sizeof(t_output[0]));
+       memcpy((char *)output,(char *)&t_output[1],sizeof(t_output[1]));
     }
     else
 #endif
index d74d1ed698b210c6345feacef44877cc96641b37..ff8b3b9b4ad4603d8baf4d3210fef169d85aa3d7 100644 (file)
@@ -114,8 +114,8 @@ mit_des_ecb_encrypt(clear, cipher, schedule, encrypt)
     }
 #endif
     if ((long) clear & 3) {
-       bcopy((char *)clear++,(char *)&L_save,sizeof(L_save));
-       bcopy((char *)clear,(char *)&R_save,sizeof(R_save));
+       memcpy((char *)&L_save,(char *)clear++,sizeof(L_save));
+       memcpy((char *)&R_save,(char *)clear,sizeof(R_save));
        L1 = L_save;
        R1 = R_save;
     }
@@ -426,8 +426,8 @@ mit_des_ecb_encrypt(clear, cipher, schedule, encrypt)
     if ((long) cipher & 3) {
        L_save = L2;    /* cant bcopy a reg */
        R_save = R2;
-       bcopy((char *)&L_save,(char *)cipher++,sizeof(L_save));
-       bcopy((char *)&R_save,(char *)cipher,sizeof(R_save));
+       memcpy((char *)cipher++,(char *)&L_save,sizeof(L_save));
+       memcpy((char *)cipher,(char *)&R_save,sizeof(R_save));
     }
     else
 #endif
index 09266a09ec88ed8c8ea228cf26791b66ecc0880c..c7603b7efbc0653b1aa1ec5182f1dba536d8c0f0 100644 (file)
@@ -89,7 +89,7 @@ void mit_des_init_random_number_generator(key,p_seed)
      */
     bzero((char *)seed, sizeof(seed));
     if (!krb5_os_localaddr(&addrs) && *addrs) {
-       bcopy((char *)addrs[0]->contents, (char *)seed,
+       memcpy((char *)seed, (char *)addrs[0]->contents,
              min(sizeof(seed), addrs[0]->length));
        /* XXX may not do all of the seed. */
     }
@@ -177,7 +177,7 @@ mit_des_set_sequence_number(new_sequence_number, p_seed)
     mit_des_cblock new_sequence_number;
     mit_des_random_key_seed    *p_seed;
 {
-    bcopy((char *)new_sequence_number, (char *)p_seed->sequence_number,
+    memcpy((char *)p_seed->sequence_number, (char *)new_sequence_number,
          sizeof(p_seed->sequence_number));
 }