aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-10-18 14:40:31 -0400
committerJack Lloyd <[email protected]>2018-10-18 14:40:31 -0400
commitf6672d37d22fb0690778a522e7653bc78809e3ef (patch)
treedc55539809e1146d91846f00fa6c1b8b9ed91934
parentff5b63d5de2b250d89ee6fac9c210e453a4918f4 (diff)
Add some long Blowfish tests
The test suite was not hitting the 4x unrolled Blowfish added in f7a8bd2780c
-rw-r--r--src/tests/data/modes/cbc.vec7
-rw-r--r--src/tests/data/stream/ctr.vec7
2 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/data/modes/cbc.vec b/src/tests/data/modes/cbc.vec
index 133ad87f1..0089d6170 100644
--- a/src/tests/data/modes/cbc.vec
+++ b/src/tests/data/modes/cbc.vec
@@ -183,6 +183,13 @@ Nonce = 0634d69eaff3ae17
In = 109a3d3d745d65b38edbc73d1de8b2807f7820221a6c3937faab19fcbb75d3c8aaf4b63f2714cfc94e95ae43d65f6df43815efc214ec66a5d1be185d855a6260141ffd179bc980490f8a26d8215dd2ab
Out = e9513e8892a09085bee29c358014afd60d7578d21e00a31e5d61b965c18778ebe18469170794e5ddf24aa777c8ab0a2c62474109e617978bcc5ce3456ddd9622833420443c2a26b1b6e20a05c189da6c46D5F74FA507C4B3
+[Blowfish/CBC/NoPadding]
+# Generated by PyCrypto
+Key = 6162636465666768696a6b6c6d6e6f70
+Nonce = 4956495649564956
+In = 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+Out = 00811221519eb185f78b5c9b0da9f5020fbf9fad61f158f158e8799f5cd65bc9abb6d9a1bf4a06d74e33986c009bed93f131ad209368056467e47ec75f3ba25f
+
[Noekeon/CBC/PKCS7]
Key = 56C5E79C74EF63A2B64D831EC0FE0F5A
Nonce = D79A4D3B34BDE6BFB4DC0BF752987080
diff --git a/src/tests/data/stream/ctr.vec b/src/tests/data/stream/ctr.vec
index 1b3bea07b..41d262181 100644
--- a/src/tests/data/stream/ctr.vec
+++ b/src/tests/data/stream/ctr.vec
@@ -4511,6 +4511,13 @@ Nonce = 00000000000000000000000000000000
In = 11111111aaaaaaaa11111111bbbbbbbb11111111cccccccc11111111dddddddd22222222aaaaaaaa22222222bbbbbbbb22222222cccccccc22222222dddddddd33333333aaaaaaaa33333333bbbbbbbb33333333cccccccc33333333dddddddd44444444aaaaaaaa44444444bbbbbbbb44444444cccccccc44444444dddddddd55555555aaaaaaaa55555555bbbbbbbb55555555cccccccc55555555dddddddd
Out = ac5d7de805a0bf1c57c854501af60fa11497e2a34519dea1569e91e5b5ccae2ff3bfa1bf975f4571f48be191613546c3911163c085f871f0e7ae5f2a085b81851c2a3ddf20ecb8fa51901aec8ee4ba32a35dab67bb72cd9140ad188a967ac0fbbdfa94ea6cce47dcf8525ab5a814cfeb2bb60ee2b126e2d9d847c1a9e96f9019e3e6a7fe40d3829afb73db1cc245646addb62d9b907baaafbe46a73dbc131d3d
+[CTR-BE(Blowfish)]
+# Generated by PyCrypto
+
+Key = 6162636465666768696a6b6c6d6e6f70
+Nonce = 0000000000000000
+Out = 070976f150a29a6c0cbf12434d974ade50444dd898c1a21189e1e3a03638ff59ca88b4bc4b7cce5d042d3fd6c471d809ace726cb94083c15edff03afe80a301e
+
[CTR-BE(XTEA)]
Key = EC1147D3A4CB70A20AA8664E88E60985
Nonce = 7A38520947DD623F