00001 #ifndef _RC4_H 00002 #define _RC4_H 00003 00004 namespace crypt { 00005 static const int RC4_keylength=5; 00006 static const unsigned int RC4_magicbyte=0x29292929; 00007 static const unsigned char RC4_key[]="MSH05"; 00008 00009 struct rc4_state { 00010 int x, y, m[256]; 00011 }; 00012 00013 void rc4_init(struct rc4_state *s, unsigned char *key, int length); 00014 void rc4_crypt(struct rc4_state *s, unsigned char *data, int length); 00015 00016 void rc4_removeWarningAndDoNothingFunction(); 00017 } 00018 00019 #endif
1.3.6