Listing of RC4 test vectors?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Listing of RC4 test vectors?

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

RC4 of what?
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post 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.
Post Reply