sync regress test w/ sys/crypto/blowfish change
This commit is contained in:
parent
2ff9b43758
commit
0f7736565f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bftest.c,v 1.3 2000/11/08 06:02:01 itojun Exp $ */
|
||||
/* $NetBSD: bftest.c,v 1.4 2002/02/27 01:41:54 itojun Exp $ */
|
||||
/* $KAME: bftest.c,v 1.3 2000/11/08 05:58:24 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -174,7 +174,7 @@ again:
|
|||
|
||||
data[0] = (BF_LONG)ntohl(data[0]);
|
||||
data[1] = (BF_LONG)ntohl(data[1]);
|
||||
BF_encrypt(data, &key, BF_ENCRYPT);
|
||||
BF_encrypt(data, &key);
|
||||
data[0] = (BF_LONG)htonl(data[0]);
|
||||
data[1] = (BF_LONG)htonl(data[1]);
|
||||
if (memcmp(data, cipher, 8) != 0) {
|
||||
|
@ -188,7 +188,7 @@ again:
|
|||
|
||||
data[0] = (BF_LONG)ntohl(data[0]);
|
||||
data[1] = (BF_LONG)ntohl(data[1]);
|
||||
BF_encrypt(data, &key, BF_DECRYPT);
|
||||
BF_decrypt(data, &key);
|
||||
data[0] = (BF_LONG)htonl(data[0]);
|
||||
data[1] = (BF_LONG)htonl(data[1]);
|
||||
if (memcmp(data, plain, 8) != 0) {
|
||||
|
|
Loading…
Reference in New Issue