123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #ifndef MBEDTLS_ARC4_H
- #define MBEDTLS_ARC4_H
- #if !defined(MBEDTLS_CONFIG_FILE)
- #include "config.h"
- #else
- #include MBEDTLS_CONFIG_FILE
- #endif
- #include <stddef.h>
- #if !defined(MBEDTLS_ARC4_ALT)
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct
- {
- int x;
- int y;
- unsigned char m[256];
- }
- mbedtls_arc4_context;
- void mbedtls_arc4_init( mbedtls_arc4_context *ctx );
- void mbedtls_arc4_free( mbedtls_arc4_context *ctx );
- void mbedtls_arc4_setup( mbedtls_arc4_context *ctx, const unsigned char *key,
- unsigned int keylen );
- int mbedtls_arc4_crypt( mbedtls_arc4_context *ctx, size_t length, const unsigned char *input,
- unsigned char *output );
- #ifdef __cplusplus
- }
- #endif
- #else
- #include "arc4_alt.h"
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- int mbedtls_arc4_self_test( int verbose );
- #ifdef __cplusplus
- }
- #endif
- #endif
|