Documentation
Includes
config.h
#include "config.h"
MBEDTLS_CONFIG_FILE
#include MBEDTLS_CONFIG_FILE
stddef.h
#include <stddef.h>
stdint.h
#include <stdint.h>
xtea_alt.h
#include "xtea_alt.h"
Macros
Marco MBEDTLS_XTEA_H
#define MBEDTLS_XTEA_H
Marco MBEDTLS_XTEA_ENCRYPT
#define MBEDTLS_XTEA_ENCRYPT 1
Marco MBEDTLS_XTEA_DECRYPT
#define MBEDTLS_XTEA_DECRYPT 0
#define MBEDTLS_ERR_XTEA_INVALID_INPUT_LENGTH -40 /**< The data input has an invalid length. */
Marco MBEDTLS_ERR_XTEA_HW_ACCEL_FAILED
#define MBEDTLS_ERR_XTEA_HW_ACCEL_FAILED -41 /**< XTEA hardware accelerator failed. */
Functions
Func mbedtls_xtea_init
void mbedtls_xtea_init( mbedtls_xtea_context *ctx );
Func mbedtls_xtea_free
void mbedtls_xtea_free( mbedtls_xtea_context *ctx );
Func mbedtls_xtea_setup
void mbedtls_xtea_setup( mbedtls_xtea_context *ctx, const unsigned char key[16] );
Func mbedtls_xtea_crypt_ecb
int mbedtls_xtea_crypt_ecb( mbedtls_xtea_context *ctx,
int mode,
const unsigned char input[8],
unsigned char output[8] );
Func mbedtls_xtea_crypt_cbc
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);
Func mbedtls_xtea_self_test
int mbedtls_xtea_self_test( int verbose );
Vars
Consts
Types
Typedefs
Typedef
mbedtls_xtea_context;
typedef struct mbedtls_xtea_context
{
uint32_t k[4]; /*!< key */
}
mbedtls_xtea_context;