Commit 331ce68f authored by Niels Möller's avatar Niels Möller
Browse files

* testsuite/blowfish-test.m4: Fixed testcase, use correct key


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

Rev: src/nettle/testsuite/blowfish-test.m4:1.3
parent abd17ec3
......@@ -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")))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment