19#ifndef MBEDTLS_AES_ALT_H
20#define MBEDTLS_AES_ALT_H
23#if defined(MBEDTLS_AES_ALT)
36 unsigned char key[32];
64 unsigned int keybits );
76 unsigned int keybits );
90 const unsigned char input[16],
91 unsigned char output[16] );
93#if defined(MBEDTLS_CIPHER_MODE_CBC)
119 unsigned char iv[16],
120 const unsigned char *input,
121 unsigned char *output );
124#if defined(MBEDTLS_CIPHER_MODE_CFB)
154 unsigned char iv[16],
155 const unsigned char *input,
156 unsigned char *output );
185 unsigned char iv[16],
186 const unsigned char *input,
187 unsigned char *output );
190#if defined(MBEDTLS_CIPHER_MODE_CTR)
216 unsigned char nonce_counter[16],
217 unsigned char stream_block[16],
218 const unsigned char *input,
219 unsigned char *output );
234 const unsigned char input[16],
235 unsigned char output[16] );
249 const unsigned char input[16],
250 unsigned char output[16] );
252#if !defined(MBEDTLS_DEPRECATED_REMOVED)
253#if defined(MBEDTLS_DEPRECATED_WARNING)
254#define MBEDTLS_DEPRECATED __attribute__((deprecated))
256#define MBEDTLS_DEPRECATED
271 const unsigned char input[16],
272 unsigned char output[16] )
290 const unsigned char input[16],
291 unsigned char output[16] )
296#undef MBEDTLS_DEPRECATED
int mbedtls_aes_crypt_ecb(mbedtls_aes_context *ctx, int mode, const unsigned char input[16], unsigned char output[16])
This function performs an AES single-block encryption or decryption operation.
int mbedtls_aes_setkey_dec(mbedtls_aes_context *ctx, const unsigned char *key, unsigned int keybits)
This function sets the decryption key.
int mbedtls_aes_crypt_ctr(mbedtls_aes_context *ctx, size_t length, size_t *nc_off, unsigned char nonce_counter[16], unsigned char stream_block[16], const unsigned char *input, unsigned char *output)
This function performs an AES-CTR encryption or decryption operation.
void mbedtls_aes_encrypt(mbedtls_aes_context *ctx, const unsigned char input[16], unsigned char output[16])
Deprecated internal AES block encryption function without return value.
int mbedtls_internal_aes_encrypt(mbedtls_aes_context *ctx, const unsigned char input[16], unsigned char output[16])
Internal AES block encryption function.
void mbedtls_aes_init(mbedtls_aes_context *ctx)
This function initializes the specified AES context.
int mbedtls_aes_setkey_enc(mbedtls_aes_context *ctx, const unsigned char *key, unsigned int keybits)
This function sets the encryption key.
void mbedtls_aes_free(mbedtls_aes_context *ctx)
This function releases and clears the specified AES context.
int mbedtls_internal_aes_decrypt(mbedtls_aes_context *ctx, const unsigned char input[16], unsigned char output[16])
Internal AES block decryption function.
void mbedtls_aes_decrypt(mbedtls_aes_context *ctx, const unsigned char input[16], unsigned char output[16])
Deprecated internal AES block decryption function without return value.
The AES context-type definition.