PolarSSL
|
00001 00025 #ifndef POLARSSL_ARC4_H 00026 #define POLARSSL_ARC4_H 00027 00031 typedef struct 00032 { 00033 int x; 00034 int y; 00035 unsigned char m[256]; 00036 } 00037 arc4_context; 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00050 void arc4_setup( arc4_context *ctx, const unsigned char *key, int keylen ); 00051 00062 int arc4_crypt( arc4_context *ctx, int length, const unsigned char *input, 00063 unsigned char *output ); 00064 00065 /* 00066 * \brief Checkup routine 00067 * 00068 * \return 0 if successful, or 1 if the test failed 00069 */ 00070 int arc4_self_test( int verbose ); 00071 00072 #ifdef __cplusplus 00073 } 00074 #endif 00075 00076 #endif /* arc4.h */