aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data/modes
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-07-07 16:39:13 +0200
committerRenĂ© Korthaus <[email protected]>2016-07-11 11:43:37 +0200
commit0d503ef93d34571039115f05a24a849a05226b5c (patch)
treea904734a2a79347d81a117ba738dfb206f60d923 /src/tests/data/modes
parent2b3f4270371d376e1500b68f4955548b659d2011 (diff)
Add test vectors for AES-CBC-CS3 aka AES/CBC/CTS from RFC 3962
Previously, CBC-CS3 only had tests with DES, but if DES is not enabled in the module policy, then CBC-CS3 is not tested at all.
Diffstat (limited to 'src/tests/data/modes')
-rw-r--r--src/tests/data/modes/cbc.vec32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/tests/data/modes/cbc.vec b/src/tests/data/modes/cbc.vec
index bad6ae0c1..6839a396b 100644
--- a/src/tests/data/modes/cbc.vec
+++ b/src/tests/data/modes/cbc.vec
@@ -1227,3 +1227,35 @@ Key = 603DEB1015CA71BE2B73AEF0857D77811F352C073B6108D72D9810A30914DFF4
Nonce = 000102030405060708090A0B0C0D0E0F
In = 6BC1BEE22E409F96E93D7E117393172AAE2D8A571E03AC9C9EB76FAC45AF8E5130C81C46A35CE411E5FBC1191A0A52EFF69F2445DF4F9B17AD2B417BE66C3710
Out = F58C4C04D6E5F1BA779EABFB5F7BFBD69CFC4E967EDB808D679F777BC6702C7D39F23369A9D9BACFA530E26304231461B2EB05E2C39BE9FCDA6C19078C6A9D1B
+
+# RFC 3962: Advanced Encryption Standard (AES) Encryption for Kerberos 5
+[AES-128/CBC/CTS]
+Key = 636869636b656e207465726979616b69
+Nonce = 00000000000000000000000000000000
+In = 4920776f756c64206c696b652074686520
+Out = c6353568f2bf8cb4d8a580362da7ff7f97
+
+Key = 636869636b656e207465726979616b69
+Nonce = 00000000000000000000000000000000
+In = 4920776f756c64206c696b65207468652047656e6572616c20476175277320
+Out = fc00783e0efdb2c1d445d4c8eff7ed2297687268d6ecccc0c07b25e25ecfe5
+
+Key = 636869636b656e207465726979616b69
+Nonce = 00000000000000000000000000000000
+In = 4920776f756c64206c696b65207468652047656e6572616c2047617527732043
+Out = 39312523a78662d5be7fcbcc98ebf5a897687268d6ecccc0c07b25e25ecfe584
+
+Key = 636869636b656e207465726979616b69
+Nonce = 00000000000000000000000000000000
+In = 4920776f756c64206c696b65207468652047656e6572616c20476175277320436869636b656e2c20706c656173652c
+Out = 97687268d6ecccc0c07b25e25ecfe584b3fffd940c16a18c1b5549d2f838029e39312523a78662d5be7fcbcc98ebf5
+
+Key = 636869636b656e207465726979616b69
+Nonce = 00000000000000000000000000000000
+In = 4920776f756c64206c696b65207468652047656e6572616c20476175277320436869636b656e2c20706c656173652c20
+Out = 97687268d6ecccc0c07b25e25ecfe5849dad8bbb96c4cdc03bc103e1a194bbd839312523a78662d5be7fcbcc98ebf5a8
+
+Key = 636869636b656e207465726979616b69
+Nonce = 00000000000000000000000000000000
+In = 4920776f756c64206c696b65207468652047656e6572616c20476175277320436869636b656e2c20706c656173652c20616e6420776f6e746f6e20736f75702e
+Out = 97687268d6ecccc0c07b25e25ecfe58439312523a78662d5be7fcbcc98ebf5a84807efe836ee89a526730dbc2f7bc8409dad8bbb96c4cdc03bc103e1a194bbd8 \ No newline at end of file