]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* testsuite/blowfish-test.m4: Fixed testcase, use correct key
authorNiels Möller <nisse@lysator.liu.se>
Fri, 15 Jun 2001 16:33:08 +0000 (18:33 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 15 Jun 2001 16:33:08 +0000 (18:33 +0200)
length.

* testsuite/blowfish-test.m4: Added one test, from GNUPG.

Rev: src/nettle/testsuite/blowfish-test.m4:1.3

testsuite/blowfish-test.m4

index 931ed8cb01ce832952bbc60e7e2f16e22ff76281..3326a613b8e9d892f466d4bac852d69d95cb2683 100644 (file)
@@ -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;