/home/dko/projects/mobilec/tags/MobileC-v1.10.2/MobileC-v1.10.2/src/security/xyssl-0.9/include/xyssl/arc4.h

Go to the documentation of this file.
00001 
00004 #ifndef XYSSL_ARC4_H
00005 #define XYSSL_ARC4_H
00006 
00010 typedef struct
00011 {
00012     int x;                      
00013     int y;                      
00014     unsigned char m[256];       
00015 }
00016 arc4_context;
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00029 void arc4_setup( arc4_context *ctx, unsigned char *key, int keylen );
00030 
00038 void arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen );
00039 
00040 /*
00041  * \brief          Checkup routine
00042  *
00043  * \return         0 if successful, or 1 if the test failed
00044  */
00045 int arc4_self_test( int verbose );
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050 
00051 #endif /* arc4.h */

Generated on Fri Jul 11 17:59:45 2008 for Mobile-C by  doxygen 1.5.4