/home/dko/projects/mobilec/trunk/src/security/xyssl-0.7/include/xyssl/arc4.h

Go to the documentation of this file.
00001 
00004 #ifndef _ARC4_H
00005 #define _ARC4_H
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010 
00014 typedef struct
00015 {
00016     int m[256];         
00017     int x;              
00018     int y;              
00019 }
00020 arc4_context;
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 May 16 14:49:55 2008 for Mobile-C by  doxygen 1.5.4