00001
00023 #ifndef POLARSSL_ARC4_H
00024 #define POLARSSL_ARC4_H
00025
00029 typedef struct
00030 {
00031 int x;
00032 int y;
00033 unsigned char m[256];
00034 }
00035 arc4_context;
00036
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040
00048 void arc4_setup( arc4_context *ctx, unsigned char *key, int keylen );
00049
00057 void arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen );
00058
00059
00060
00061
00062
00063
00064 int arc4_self_test( int verbose );
00065
00066 #ifdef __cplusplus
00067 }
00068 #endif
00069
00070 #endif