# Test Vectors for ciphers

While implementing ciphers (/hash functions, ...), I often face this problem: Where to find test vectors for it; so that I can guarantee my program is correct. It is generally a tedious job to find test cases, so I planned to post this as a question here.

This question is about gathering test vectors for several ciphers (/hash functions, ...). The list of ciphers includes (but not limited to): RC4, all ciphers from eStream, DES (round-wise, if possible), 3DES, AES, ...

For a head-start, I put test cases of RC4 (correct me if I am wrong):

Key (255, 255, 0, 255) Keystream 23, 0, 135, 229, 197, 74, 253, 202, 72, 83, ...

Key (0, 0, 0, 255, 127, 31) Keystream 40, 172, 142, 137, 101, 124, 164, 50, 0, 172, ...

-
NIST provides test values for DES, AES, and AES candidate ciphers. eStream submissions should have also included a test value file. –  Richie Frame Jul 30 at 4:41