| setupRC4state, rc4, rc4skip, rc4back - alleged rc4 encryption |
| void setupRC4state(RC4state *s, uchar *seed, int slen) |
| void rc4(RC4state *s, uchar *data, int dlen) |
| void rc4skip(RC4state *s, int nbytes) |
| void rc4back(RC4state *s, int nbytes) |
| This is an algorithm alleged to be Rivest's RC4 encryption function. It is |
| a pseudo-random number generator with a 256 byte state and a long |
| cycle. The input buffer is XOR'd with the output of the |
| generator both to encrypt and to decrypt. The seed, entered |
| can be any length. The generator can be run forward using |
| to account lost transmissions, |
| to cover retransmitted data. |
| structure keeps track of the algorithm. |