7#ifndef MBEDTLS_AES_ALT_H
8#define MBEDTLS_AES_ALT_H
11#if defined(MBEDTLS_CONFIG_FILE)
12#include MBEDTLS_CONFIG_FILE
19#if defined(MBEDTLS_AES_ALT)
23#define MBEDTLS_AES_ENCRYPT 1
24#define MBEDTLS_AES_DECRYPT 0
27#define MBEDTLS_ERR_AES_INVALID_KEY_LENGTH -0x0020
28#define MBEDTLS_ERR_AES_INVALID_INPUT_LENGTH -0x0022
31#define MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE -0x0023
32#define MBEDTLS_ERR_AES_HW_ACCEL_FAILED -0x0025
36#define MBEDTLS_AES_CONTEXT_SIZE_IN_WORDS (29)
49 uint32_t buf[MBEDTLS_AES_CONTEXT_SIZE_IN_WORDS];
53#if defined(MBEDTLS_CIPHER_MODE_XTS)
57typedef struct mbedtls_aes_xts_context
59 mbedtls_aes_context crypt;
61 mbedtls_aes_context tweak;
63} mbedtls_aes_xts_context;