Page 1 of 1

Listing of RC4 test vectors?

Posted: Thu Nov 03, 2005 8:14 am
by redmonkey
Anyone know of a site/page that lists the test vectors for RC4?

I've been searching round on and off the last few days and only turned up a couple of tests.

Posted: Thu Nov 03, 2005 9:17 am
by feyd
RC4 of what?

Posted: Thu Nov 03, 2005 9:26 am
by redmonkey
Apparently floating around somewhere there are a standard set of test vectors which you can use to test the RC4 algorithm i.e. Feed in this key with this data and this data will be returned.

I'm writting an RC4 encryption class in PHP and I'm looking to verify/test it's functionality.

Posted: Thu Nov 03, 2005 9:37 am
by feyd
ahh.. I thought you were talking about a Release Candidate 4 :lol:

http://en.wikipedia.org/wiki/RC4 has a link to the original spec.. appendix A of that spec has test vectors.

Posted: Thu Nov 03, 2005 9:44 am
by redmonkey
Sorry, guess I was being vague :lol:

Thanks, I didn't even think to look at the spec as someone had already given me that but obviously (for what ever reason) had decided not to include the test vectors.