rc4state
static void rc4init ( uint8_t * key, int keylen, rc4state * state) {
static uint8_t rc4update(rc4state * state) {
rc4state rc4state;
rc4init(keybuf, keylen+IVBYTES, &rc4state);
if ((rc4update(&rc4state) ^ state->sessions[i].keystream[j]) != 0) {