24 #ifndef POLARSSL_XTEA_H
25 #define POLARSSL_XTEA_H
27 #if !defined(POLARSSL_CONFIG_FILE)
30 #include POLARSSL_CONFIG_FILE
35 #if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
37 typedef UINT32 uint32_t;
42 #define XTEA_ENCRYPT 1
43 #define XTEA_DECRYPT 0
45 #define POLARSSL_ERR_XTEA_INVALID_INPUT_LENGTH -0x0028
47 #if !defined(POLARSSL_XTEA_ALT)
98 const unsigned char input[8],
99 unsigned char output[8] );
101 #if defined(POLARSSL_CIPHER_MODE_CBC)
119 const unsigned char *input,
120 unsigned char *output);
128 #include "xtea_alt.h"
void xtea_free(xtea_context *ctx)
Clear XTEA context.
Configuration options (set of defines)
void xtea_init(xtea_context *ctx)
Initialize XTEA context.
int xtea_crypt_ecb(xtea_context *ctx, int mode, const unsigned char input[8], unsigned char output[8])
XTEA cipher function.
void xtea_setup(xtea_context *ctx, const unsigned char key[16])
XTEA key schedule.
int xtea_crypt_cbc(xtea_context *ctx, int mode, size_t length, unsigned char iv[8], const unsigned char *input, unsigned char *output)
XTEA CBC cipher function.
int xtea_self_test(int verbose)
Checkup routine.