23 #ifndef MBEDTLS_XTEA_H
24 #define MBEDTLS_XTEA_H
26 #if !defined(MBEDTLS_CONFIG_FILE)
29 #include MBEDTLS_CONFIG_FILE
35 #define MBEDTLS_XTEA_ENCRYPT 1
36 #define MBEDTLS_XTEA_DECRYPT 0
38 #define MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH -0x0028
40 #if !defined(MBEDTLS_XTEA_ALT)
91 const unsigned char input[8],
92 unsigned char output[8] );
94 #if defined(MBEDTLS_CIPHER_MODE_CBC)
112 const unsigned char *input,
113 unsigned char *output);
121 #include "xtea_alt.h"
int mbedtls_xtea_crypt_ecb(mbedtls_xtea_context *ctx, int mode, const unsigned char input[8], unsigned char output[8])
XTEA cipher function.
void mbedtls_xtea_free(mbedtls_xtea_context *ctx)
Clear XTEA context.
Compatibility names (set of defines)
void mbedtls_xtea_init(mbedtls_xtea_context *ctx)
Initialize XTEA context.
void mbedtls_xtea_setup(mbedtls_xtea_context *ctx, const unsigned char key[16])
XTEA key schedule.
int mbedtls_xtea_self_test(int verbose)
Checkup routine.