27 #ifndef POLARSSL_XTEA_H
28 #define POLARSSL_XTEA_H
36 typedef UINT32 uint32_t;
41 #define XTEA_ENCRYPT 1
42 #define XTEA_DECRYPT 0
44 #define POLARSSL_ERR_XTEA_INVALID_INPUT_LENGTH -0x0028
46 #if !defined(POLARSSL_XTEA_ALT)
83 unsigned char input[8],
84 unsigned char output[8] );
103 unsigned char *input,
104 unsigned char *output);
111 #include "xtea_alt.h"
void xtea_setup(xtea_context *ctx, unsigned char key[16])
XTEA key schedule.
Configuration options (set of defines)
int xtea_crypt_ecb(xtea_context *ctx, int mode, unsigned char input[8], unsigned char output[8])
XTEA cipher function.
int xtea_self_test(int verbose)
Checkup routine.
int xtea_crypt_cbc(xtea_context *ctx, int mode, size_t length, unsigned char iv[8], unsigned char *input, unsigned char *output)
XTEA CBC cipher function.