chiark / gitweb /
symm/t/rijndael256: Add tests for small key sizes.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 31 Oct 2018 13:47:47 +0000 (13:47 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 24 Nov 2018 20:12:43 +0000 (20:12 +0000)
Commit 388489cbb302cb86ee0fd4927243a24525dfd5ee (released in 2.4.2)
added more round constants so that we give the correct answers for
large-block Rijndael with small keys -- and this works fine for clean
builds.  Unfortunately, Catacomb's build system doesn't regenerate
recomputed tables automatically (and that would anyway be a problem for
cross builds), which means that old working trees will still be building
broken code.

Add some tests so that developers notice and hopefully rebuild the
offending tables.

symm/t/rijndael256

index 9a4b86641d790b801723ad2ca831580151a0a2dd..732685f3d5b15ea58174f253f08c3d3d46a09d28 100644 (file)
@@ -2882,3 +2882,16 @@ rijndael256 {
        92128b45f2af927df41f3b200a872673a744956e2c58b0099f243b7911c50436
        ce408d59a184170a267df8713a787464af6d75f5f46b8b64ddac88daabb50ecd;
 }
+
+rijndael256 {
+  ## Some tests for tiny keys.
+  e93a6283
+    511ad33d714994b1c61aa279fc973a9d859713ec6473f023401a88e3e8640e9d
+    ef36dccd7636fb28253fb591b5bacbf7e31f37f5f239a756d3bf848c559d92c6;
+  717267580d3a01d9
+    0d6aa90050de49fabdd53aba1f6a903f32c6815810b7b2ce72aa3dc2246cdfdf
+    84c75fa0db1a864eac23ae6b9c50024dda11d35cb4736ae7950961c61b35454a;
+  d3c9931798b0abc3b15129ae
+    1188d6578860ceb90a80228c344c3d9e72e775cae5d41b0fd9ff9c60d0898fd0
+    ec81f1cda5409281c7b4d5f698b6ca5d0ec79598571237a08a60a4a0724b739a;
+}