aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/block
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-08-26 11:24:04 -0400
committerJack Lloyd <[email protected]>2019-08-26 11:24:04 -0400
commit14ba8584069e927210bc5a1707f865746f6f93c6 (patch)
treec191d8e8c97c45f1a3506e11e0552b8eb6bccd99 /src/tests/data/block
parent8a77591b2dccef8e5849fcefd214f3ae2f48ba6a (diff)
Fix a bug in CAST-128 affecting 11, 13, 14, or 15 byte keys
With keys not a multiple of 4 bytes, the zero bytes ended up in the wrong place. In the unlikely event anyone was affected by this they could just use the equivalent 16 byte key. Closes #2081
Diffstat (limited to 'src/tests/data/block')
-rw-r--r--src/tests/data/block/cast128.vec24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tests/data/block/cast128.vec b/src/tests/data/block/cast128.vec
index c10ebacc1..981f95f64 100644
--- a/src/tests/data/block/cast128.vec
+++ b/src/tests/data/block/cast128.vec
@@ -167,3 +167,27 @@ Key = 9F79CA83F4FDCCACA166BF18BF1B0CC2
In = 8420D1986EBBABFC
Out = EAACBF83A093CB44
+# Generated by OpenSSL
+Key = 4A2E8263369E38719BA401
+In = 5E22303EE1F763BF
+Out = F5040CA81941BC73
+
+Key = 4A2E8263369E38719BA401E5
+In = 5E22303EE1F763BF
+Out = 789965F2DD2A0A36
+
+Key = 4A2E8263369E38719BA401E5D4
+In = 5E22303EE1F763BF
+Out = 94D97218D38611DA
+
+Key = 4A2E8263369E38719BA401E5D460
+In = 5E22303EE1F763BF
+Out = AAB10DA344EC7D93
+
+Key = 4A2E8263369E38719BA401E5D46099
+In = 5E22303EE1F763BF
+Out = 0E8FB9776CEBE257
+
+Key = 4A2E8263369E38719BA401E5D46099FE
+In = 5E22303EE1F763BF
+Out = B4DD9FBFCEC7EFDD