1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef _RC4_H #define _RC4_H struct rc4_state { int x, y, m[256]; }; #ifdef __cplusplus extern "C" { #endif void rc4_setup( struct rc4_state *s, const unsigned char *key, int length ); void rc4_crypt( struct rc4_state *s, unsigned char *data, int length ); #ifdef __cplusplus } #endif #endif /* rc4.h */