diff options
author | Niels Möller <nisse@lysator.liu.se> | 2011-06-12 23:27:23 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2011-06-12 23:27:23 +0200 |
commit | 8d7bc81e1809d22627f145d77cf736cd450ee9b7 (patch) | |
tree | 35b6f41338e9b537a3942d984062b9797dc8fe87 /testsuite/serpent-test.c | |
parent | 579ed242122edbcc2de28f03534641e7c8aa1a73 (diff) | |
download | nettle-8d7bc81e1809d22627f145d77cf736cd450ee9b7.tar.gz |
(test_main): Added tests with multiple blocks at a time.
Rev: nettle/testsuite/serpent-test.c:1.7
Diffstat (limited to 'testsuite/serpent-test.c')
-rw-r--r-- | testsuite/serpent-test.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/serpent-test.c b/testsuite/serpent-test.c index ff81131e..a8b351af 100644 --- a/testsuite/serpent-test.c +++ b/testsuite/serpent-test.c @@ -179,5 +179,35 @@ test_main(void) HL("0000000001000000 0200000003000000"), H("C8A078D8212AC96D 9060E30EC5CBB5C7")); + /* Test with multiple blocks. */ + test_cipher(&nettle_serpent128, + HL("e87450aa0fd87293fd0371483a459bd2"), + HL("a78a7a8d392f629d bd13674c8dce6fa2"), + H("b3d488986c80dea7 c5ebdab4907871c9")); + test_cipher(&nettle_serpent128, + HL("e87450aa0fd87293fd0371483a459bd2"), + HL("a78a7a8d392f629d bd13674c8dce6fa2" + "930c74dec02a11d8 c80d90b5e5c887a7"), + H("b3d488986c80dea7 c5ebdab4907871c9" + "a4b92b13b79afb37 5518b01bfd706a37")); + test_cipher(&nettle_serpent128, + HL("e87450aa0fd87293fd0371483a459bd2"), + HL("a78a7a8d392f629d bd13674c8dce6fa2" + "930c74dec02a11d8 c80d90b5e5c887a7" + "83c92a921b5b2028 d9cb313a5f07ab09"), + H("b3d488986c80dea7 c5ebdab4907871c9" + "a4b92b13b79afb37 5518b01bfd706a37" + "8e44c2d463df4531 165461699edbad03")); + test_cipher(&nettle_serpent128, + HL("e87450aa0fd87293fd0371483a459bd2"), + HL("a78a7a8d392f629d bd13674c8dce6fa2" + "930c74dec02a11d8 c80d90b5e5c887a7" + "83c92a921b5b2028 d9cb313a5f07ab09" + "672eadf1624a2ed0 c42d1b08b076f75a"), + H("b3d488986c80dea7 c5ebdab4907871c9" + "a4b92b13b79afb37 5518b01bfd706a37" + "8e44c2d463df4531 165461699edbad03" + "30ac8c52697102ae 3b725dba79ceb250")); + SUCCESS(); } |