PolarSSL v1.1.4
|
00001 00027 #ifndef POLARSSL_ARC4_H 00028 #define POLARSSL_ARC4_H 00029 00030 #include <string.h> 00031 00035 typedef struct 00036 { 00037 int x; 00038 int y; 00039 unsigned char m[256]; 00040 } 00041 arc4_context; 00042 00043 #ifdef __cplusplus 00044 extern "C" { 00045 #endif 00046 00054 void arc4_setup( arc4_context *ctx, const unsigned char *key, unsigned int keylen ); 00055 00066 int arc4_crypt( arc4_context *ctx, size_t length, const unsigned char *input, 00067 unsigned char *output ); 00068 00069 /* 00070 * \brief Checkup routine 00071 * 00072 * \return 0 if successful, or 1 if the test failed 00073 */ 00074 int arc4_self_test( int verbose ); 00075 00076 #ifdef __cplusplus 00077 } 00078 #endif 00079 00080 #endif /* arc4.h */