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

src/lib/crypto/des/destest.c

index e85e4823d2b251b215a042e925b12e8b543e4b49..7b4f8ea50cdc2555a6c9a0b8e47b0ad05b7c8cd8 100644 (file)
@@ -72,7 +72,7 @@ char *argv[];
        mit_des_ecb_encrypt(input, output2,
                            (struct mit_des_ks_struct *)eblock.priv,1);
 
-       if (bcmp((char *)output2, (char *)output, 8)) {
+       if (memcmp((char *)output2, (char *)output, 8)) {
            fprintf(stderr, 
                    "DES ERROR, key %s, text %s, real cipher %s, computed %02X%02X%02X%02X%02X%02X%02X%02X\n",
                    block1, block2, block3,
@@ -134,7 +134,7 @@ char cblock[];
            printf("Bad value nybble %d in %s\n", i, text);
            exit(1);
        }
-       bcopy(value2[value[text[i]]], &cblock[i*4], 4);
+       memcpy(&cblock[i*4], value2[value[text[i]]], 4);
     }
     cblock[64] = 0;
     return;