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