Rearrange the file tree.
[u/mdw/catacomb] / symm / t / des3
diff --git a/symm/t/des3 b/symm/t/des3
new file mode 100644 (file)
index 0000000..f1adb1a
--- /dev/null
@@ -0,0 +1,41 @@
+# Test vectors for double and triple DES
+
+des3 {
+  # --- Some simple single-DES things ---
+
+  00451338957377 4e6f772069732074 3fa40e8a984d4815;
+  b6c74cbf60c1fd 328da675ff5abd2c cd3e9f9b670671d1;
+
+  0123456789abcdef 4e6f772069732074 3fa40e8a984d4815;
+  0123456789abcdef 68652074696d6520 6a271787ab8883f9;
+  0123456789abcdef 666f7220616c6c20 893d51ec4b563b53;
+  0123456789abcdef 0123456789abcde7 c95744256a5ed31d;
+
+  0045133895737700451338957377 4e6f772069732074 3fa40e8a984d4815;
+  b6c74cbf60c1fdb6c74cbf60c1fd 328da675ff5abd2c cd3e9f9b670671d1;
+
+  0123456789abcdef0123456789abcdef 4e6f772069732074 3fa40e8a984d4815;
+  0123456789abcdef0123456789abcdef 68652074696d6520 6a271787ab8883f9;
+  0123456789abcdef0123456789abcdef 666f7220616c6c20 893d51ec4b563b53;
+  0123456789abcdef0123456789abcdef 0123456789abcde7 c95744256a5ed31d;
+
+  004513389573770045133895737700451338957377
+       4e6f772069732074 3fa40e8a984d4815;
+  b6c74cbf60c1fdb6c74cbf60c1fdb6c74cbf60c1fd
+       328da675ff5abd2c cd3e9f9b670671d1;
+
+  0123456789abcdef0123456789abcdef0123456789abcdef
+       4e6f772069732074 3fa40e8a984d4815;
+  0123456789abcdef0123456789abcdef0123456789abcdef
+       68652074696d6520 6a271787ab8883f9;
+  0123456789abcdef0123456789abcdef0123456789abcdef
+       666f7220616c6c20 893d51ec4b563b53;
+  0123456789abcdef0123456789abcdef0123456789abcdef
+       0123456789abcde7 c95744256a5ed31d;
+
+  # --- Genuine longer keys ---
+
+  0123456789abcdeffedcba9876543210 0123456789abcde7 7f1d0a77826b8aff;
+  0123456789abcdeffedcba987654321089abcdef01234567
+       0123456789abcde7 de0b7c06ae5e0ed5;
+}