1 2 #pragma once 3 4 typedef struct _RC4_CONTEXT 5 { 6 unsigned char state[256]; 7 unsigned char x, y; 8 } RC4_CONTEXT; 9 10 void rc4_init(RC4_CONTEXT *a4i, const unsigned char *key, unsigned int keyLen); 11 12 void rc4_crypt(RC4_CONTEXT *a4i, unsigned char *inoutString, unsigned int length); 13 14