- Main Page
- Related Pages
- Data Structures
- Files

# arc4.h

Go to the documentation of this file.

    00001
    00023 #ifndef POLARSSL_ARC4_H
    00024 #define POLARSSL_ARC4_H
    00025
    00029 typedef struct
    00030 {
    00031     int x;
    00032     int y;
    00033     unsigned char m[256];
    00034 }
    00035 arc4_context;
    00036
    00037 #ifdef __cplusplus
    00038 extern "C" {
    00039 #endif
    00040
    00048 void arc4_setup( arc4_context *ctx, unsigned char *key, int keylen );
    00049
    00057 void arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen );
    00058
    00059 /*
    00060  * \brief          Checkup routine
    00061  *
    00062  * \return         0 if successful, or 1 if the test failed
    00063  */
    00064 int arc4_self_test( int verbose );
    00065
    00066 #ifdef __cplusplus
    00067 }
    00068 #endif
    00069
    00070 #endif /* arc4.h */