Rearrange the file tree.
[u/mdw/catacomb] / symm / t / rc4
1 # Test vectors for RC4
2 #
3 #
4 # These test vectors come from two places: the Usenet article confirming that
5 # the alleged RC4 source is interoperable with the BSAFE version, and some
6 # tests I performed with the RC4-in-a-signature Perl version. Some testing
7 # with the SSLeay version shows that for an all-zero key I'm compatible, but
8 # with any other I'm not. Since I pass the Usenet test vectors (which I
9 # found in the SSLeay sources!), and I'm compatible with at least one other
10 # implementation, I'm happy that I'm in the right here.
11
12 rc4-encrypt {
13 0123456789abcdef 0123456789abcdef 75b7878099e0c596;
14 0123456789abcdef
15 010101010101010101010101010101010101010101
16 7595c3e6114a09780c4ad452338e1ffd9a1be9498f;
17 }
18
19 rc4-generate {
20 00 0 de188941a3375d3a8a061e67576e926d;
21 01fe23dc45ba6798 0 643ded26ae29c15cda4f2b96d66baf2c;
22 08192a3b4c5d6e7f 1024 abb3a32a2ba4d409752923aa4032be16;
23 0123456789abcdef 0 7494c2e7104b0879;
24 ef012345 0 d6a141a7ec3c38dfbd61;
25 }