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

Go to the documentation of this file.
00001 /* SVN FILE INFO
00002  * $Revision: 174 $ : Last Committed Revision
00003  * $Date: 2008-06-24 10:50:29 -0700 (Tue, 24 Jun 2008) $ : Last Committed Date */
00007 #ifndef _ARC4_H
00008 #define _ARC4_H
00009 
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00017 typedef struct
00018 {
00019     int m[256];         
00020     int x;              
00021     int y;              
00022 }
00023 arc4_context;
00024 
00032 void arc4_setup( arc4_context *ctx, unsigned char *key, int keylen );
00033 
00041 void arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen );
00042 
00043 /*
00044  * \brief          Checkup routine
00045  *
00046  * \return         0 if successful, or 1 if the test failed
00047  */
00048 int arc4_self_test( int verbose );
00049 
00050 #ifdef __cplusplus
00051 }
00052 #endif
00053 
00054 #endif /* arc4.h */

Generated on Tue Jul 1 15:29:58 2008 for Mobile-C by  doxygen 1.5.4