52#if !defined(MBEDTLS_CONFIG_FILE)
55#include MBEDTLS_CONFIG_FILE
61#define MBEDTLS_XTEA_ENCRYPT 1
62#define MBEDTLS_XTEA_DECRYPT 0
64#define MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH -0x0028
67#define MBEDTLS_ERR_XTEA_HW_ACCEL_FAILED -0x0029
73#if !defined(MBEDTLS_XTEA_ALT)
124 const unsigned char input[8],
125 unsigned char output[8] );
127#if defined(MBEDTLS_CIPHER_MODE_CBC)
145 const unsigned char *
input,
146 unsigned char *output);
149#if defined(MBEDTLS_SELF_TEST)
156int mbedtls_xtea_self_test(
int verbose );
GLuint GLsizei GLsizei * length
GLenum GLenum GLenum input
void mbedtls_xtea_setup(mbedtls_xtea_context *ctx, const unsigned char key[16])
XTEA key schedule.
void mbedtls_xtea_free(mbedtls_xtea_context *ctx)
Clear XTEA context.
int mbedtls_xtea_crypt_ecb(mbedtls_xtea_context *ctx, int mode, const unsigned char input[8], unsigned char output[8])
XTEA cipher function.
int mbedtls_xtea_crypt_cbc(mbedtls_xtea_context *ctx, int mode, size_t length, unsigned char iv[8], const unsigned char *input, unsigned char *output)
XTEA CBC cipher function.
void mbedtls_xtea_init(mbedtls_xtea_context *ctx)
Initialize XTEA context.