00001
00002
00003
00007 #ifndef _ARC4_H
00008 #define _ARC4_H
00009
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013
00017 typedef struct
00018 {
00019 int m[256];
00020 int x;
00021 int y;
00022 }
00023 arc4_context;
00024
00032 void arc4_setup( arc4_context *ctx, unsigned char *key, int keylen );
00033
00041 void arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen );
00042
00043
00044
00045
00046
00047
00048 int arc4_self_test( int verbose );
00049
00050 #ifdef __cplusplus
00051 }
00052 #endif
00053
00054 #endif