00001
00004 #ifndef _ARC4_H
00005 #define _ARC4_H
00006
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010
00014 typedef struct
00015 {
00016 int m[256];
00017 int x;
00018 int y;
00019 }
00020 arc4_context;
00021
00029 void arc4_setup( arc4_context *ctx, unsigned char *key, int keylen );
00030
00038 void arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen );
00039
00040
00041
00042
00043
00044
00045 int arc4_self_test( int verbose );
00046
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050
00051 #endif