diff options
author | Jack Lloyd <[email protected]> | 2019-08-26 11:24:04 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-08-26 11:24:04 -0400 |
commit | 14ba8584069e927210bc5a1707f865746f6f93c6 (patch) | |
tree | c191d8e8c97c45f1a3506e11e0552b8eb6bccd99 /src/tests/data/modes/cbc.vec | |
parent | 8a77591b2dccef8e5849fcefd214f3ae2f48ba6a (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/modes/cbc.vec')
-rw-r--r-- | src/tests/data/modes/cbc.vec | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/data/modes/cbc.vec b/src/tests/data/modes/cbc.vec index 0089d6170..9e8d3f5ce 100644 --- a/src/tests/data/modes/cbc.vec +++ b/src/tests/data/modes/cbc.vec @@ -5,6 +5,12 @@ Nonce = 1234567890ABCDEF In = 4E6F77206973207468652074696D6520666F7220616C6C20 Out = E5C7CDDE872BF27C43E934008C389C0F683788499A7C05F6 +[CAST-128/CBC/PKCS7] +Nonce = 38c269b1cd42dd27 +Key = 0ab0aabb24ff0105b6aa6d2820 +In = 2b2b2e511700010000000080ce0040d9 +Out = 93f6ffd533004f1daf352beba06817fcf26d99b910733321 + [DES/CBC/PKCS7] Key = 0123456789ABCDEF Nonce = 1234567890ABCDEF |