PolarSSL v1.1.4
arc4.h
Go to the documentation of this file.
1 
27 #ifndef POLARSSL_ARC4_H
28 #define POLARSSL_ARC4_H
29 
30 #include <string.h>
31 
35 typedef struct
36 {
37  int x;
38  int y;
39  unsigned char m[256];
40 }
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
54 void arc4_setup( arc4_context *ctx, const unsigned char *key, unsigned int keylen );
55 
66 int arc4_crypt( arc4_context *ctx, size_t length, const unsigned char *input,
67  unsigned char *output );
68 
69 /*
70  * \brief Checkup routine
71  *
72  * \return 0 if successful, or 1 if the test failed
73  */
74 int arc4_self_test( int verbose );
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* arc4.h */