Rearrange the file tree.
[u/mdw/catacomb] / symm / t / rc4
diff --git a/symm/t/rc4 b/symm/t/rc4
new file mode 100644 (file)
index 0000000..4e55ba5
--- /dev/null
@@ -0,0 +1,25 @@
+# Test vectors for RC4
+#
+#
+# These test vectors come from two places: the Usenet article confirming that
+# the alleged RC4 source is interoperable with the BSAFE version, and some
+# tests I performed with the RC4-in-a-signature Perl version.  Some testing
+# with the SSLeay version shows that for an all-zero key I'm compatible, but
+# with any other I'm not.  Since I pass the Usenet test vectors (which I
+# found in the SSLeay sources!), and I'm compatible with at least one other
+# implementation, I'm happy that I'm in the right here.
+
+rc4-encrypt {
+  0123456789abcdef     0123456789abcdef        75b7878099e0c596;
+  0123456789abcdef
+       010101010101010101010101010101010101010101
+       7595c3e6114a09780c4ad452338e1ffd9a1be9498f;
+}
+
+rc4-generate {
+  00                   0       de188941a3375d3a8a061e67576e926d;
+  01fe23dc45ba6798     0       643ded26ae29c15cda4f2b96d66baf2c;
+  08192a3b4c5d6e7f     1024    abb3a32a2ba4d409752923aa4032be16;
+  0123456789abcdef     0       7494c2e7104b0879;
+  ef012345             0       d6a141a7ec3c38dfbd61;
+}