24 #ifndef MBEDTLS_XTEA_H 25 #define MBEDTLS_XTEA_H 27 #if !defined(MBEDTLS_CONFIG_FILE) 30 #include MBEDTLS_CONFIG_FILE 36 #define MBEDTLS_XTEA_ENCRYPT 1 37 #define MBEDTLS_XTEA_DECRYPT 0 39 #define MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH -0x0028 42 #define MBEDTLS_ERR_XTEA_HW_ACCEL_FAILED -0x0029 48 #if !defined(MBEDTLS_XTEA_ALT) 99 const unsigned char input[8],
100 unsigned char output[8] );
102 #if defined(MBEDTLS_CIPHER_MODE_CBC) 120 const unsigned char *input,
121 unsigned char *output);
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.
Configuration options (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.
uint32_t k[4]
Definition: xtea.h:57
struct mbedtls_xtea_context mbedtls_xtea_context
XTEA context structure.
int mbedtls_xtea_self_test(int verbose)
Checkup routine.
XTEA context structure.
Definition: xtea.h:55