diff options
author | John Kohl <jtkohl@mit.edu> | 1990-11-08 15:12:32 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1990-11-08 15:12:32 +0000 |
commit | a2deb472cd3323ac80337a7fe73b75b476d7f200 (patch) | |
tree | 6fe9fd11247a2115f1fed42cab0aa566cf24ea46 | |
parent | 7afd4d88dea2375cdb8dcc545b11d4d983cca3ad (diff) | |
download | krb5-a2deb472cd3323ac80337a7fe73b75b476d7f200.tar.gz krb5-a2deb472cd3323ac80337a7fe73b75b476d7f200.tar.xz krb5-a2deb472cd3323ac80337a7fe73b75b476d7f200.zip |
change bcmp to memcmp, bcopy to memcpy
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1426 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/crypto/des/destest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/crypto/des/destest.c b/src/lib/crypto/des/destest.c index e85e4823d2..7b4f8ea50c 100644 --- a/src/lib/crypto/des/destest.c +++ b/src/lib/crypto/des/destest.c @@ -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; |