4) Now you should start receiving the pseudo-random stream via the output bus, one byte per clock. To encrypt or decrypt using RC4 you simply xor your data with the output stream.
4) Now you should start receiving the pseudo-random stream via the output bus, one byte per clock. To encrypt or decrypt using RC4 you simply xor your data with the output stream.
Also you shouldn't use the first kb of stream because of a known RC4 vulnerability, so please discard those bytes.
Also you shouldn't use the first kb of stream because of a known RC4 vulnerability, so please discard those bytes.
The testbench and makefile work using icarus verilog and you can peer into rc4_tb.v to see an example implementation.
The testbench and makefile work using icarus verilog and you can peer into rc4_tb.v to see an example implementation.
After installing icarus verilog in your path, just issue:
make
and then
./rc4.vvp
And you should see the output of the simulation.
Any question or suggestion send an email to aortega@alu.itba.edu.ar
Any question or suggestion send an email to aortega@alu.itba.edu.ar