From: Mark Wooding Date: Wed, 31 Oct 2018 13:47:47 +0000 (+0000) Subject: symm/t/rijndael256: Add tests for small key sizes. X-Git-Tag: 2.4.3~12 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/f76d6e478c64030aee5e03c2eebdb802f9e48ca9 symm/t/rijndael256: Add tests for small key sizes. 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. --- diff --git a/symm/t/rijndael256 b/symm/t/rijndael256 index 9a4b8664..732685f3 100644 --- a/symm/t/rijndael256 +++ b/symm/t/rijndael256 @@ -2882,3 +2882,16 @@ rijndael256 { 92128b45f2af927df41f3b200a872673a744956e2c58b0099f243b7911c50436 ce408d59a184170a267df8713a787464af6d75f5f46b8b64ddac88daabb50ecd; } + +rijndael256 { + ## Some tests for tiny keys. + e93a6283 + 511ad33d714994b1c61aa279fc973a9d859713ec6473f023401a88e3e8640e9d + ef36dccd7636fb28253fb591b5bacbf7e31f37f5f239a756d3bf848c559d92c6; + 717267580d3a01d9 + 0d6aa90050de49fabdd53aba1f6a903f32c6815810b7b2ce72aa3dc2246cdfdf + 84c75fa0db1a864eac23ae6b9c50024dda11d35cb4736ae7950961c61b35454a; + d3c9931798b0abc3b15129ae + 1188d6578860ceb90a80228c344c3d9e72e775cae5d41b0fd9ff9c60d0898fd0 + ec81f1cda5409281c7b4d5f698b6ca5d0ec79598571237a08a60a4a0724b739a; +}