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) 62 void mbedtls_xtea_init( mbedtls_xtea_context *ctx );
69 void mbedtls_xtea_free( mbedtls_xtea_context *ctx );
77 void mbedtls_xtea_setup( mbedtls_xtea_context *ctx,
const unsigned char key[16] );
89 int mbedtls_xtea_crypt_ecb( mbedtls_xtea_context *ctx,
91 const unsigned char input[8],
92 unsigned char output[8] );
94 #if defined(MBEDTLS_CIPHER_MODE_CBC) 108 int mbedtls_xtea_crypt_cbc( mbedtls_xtea_context *ctx,
112 const unsigned char *input,
113 unsigned char *output);
121 #include "xtea_alt.h" Configuration options (set of defines)
int mbedtls_xtea_self_test(int verbose)
Checkup routine.