From: Niels Möller Date: Fri, 15 Jun 2001 16:33:08 +0000 (+0200) Subject: * testsuite/blowfish-test.m4: Fixed testcase, use correct key X-Git-Tag: release_nettle_0.2.20010617~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=331ce68f606c7990f2abd6fb9dcdd6d4ada9a0aa;p=thirdparty%2Fnettle.git * testsuite/blowfish-test.m4: Fixed testcase, use correct key length. * testsuite/blowfish-test.m4: Added one test, from GNUPG. Rev: src/nettle/testsuite/blowfish-test.m4:1.3 --- diff --git a/testsuite/blowfish-test.m4 b/testsuite/blowfish-test.m4 index 931ed8cb..3326a613 100644 --- a/testsuite/blowfish-test.m4 +++ b/testsuite/blowfish-test.m4 @@ -8,8 +8,8 @@ uint8_t msg[BLOWFISH_BLOCK_SIZE]; uint8_t cipher[BLOWFISH_BLOCK_SIZE]; uint8_t clear[BLOWFISH_BLOCK_SIZE]; -/* 128 bit key. Test from GNUPG. */ -blowfish_set_key(&ctx, 16, "abcdefghijklmnopqrstuvwxyz")); +/* 208 bit key. Test from GNUPG. */ +blowfish_set_key(&ctx, 26, "abcdefghijklmnopqrstuvwxyz"); blowfish_encrypt(&ctx, BLOWFISH_BLOCK_SIZE, cipher, "BLOWFISH"); if (!MEMEQ(BLOWFISH_BLOCK_SIZE, cipher, H("32 4E D0 FE F4 13 A2 03"))) FAIL;