20#ifndef MBEDTLS_STM32L4_AES_ALT_H
21#define MBEDTLS_STM32L4_AES_ALT_H
25#if defined(MBEDTLS_AES_ALT)
35#define ST_AES_TIMEOUT ((uint32_t) 0xFF)
36#define ST_ERR_AES_BUSY (-0x0023)
46 unsigned char aes_key[32];
47 CRYP_HandleTypeDef hcryp_aes;
76 unsigned int keybits);
88 unsigned int keybits);
102 const unsigned char input[16],
103 unsigned char output[16]);
105#if defined(MBEDTLS_CIPHER_MODE_CBC)
131 unsigned char iv[16],
132 const unsigned char *input,
133 unsigned char *output);
136#if defined(MBEDTLS_CIPHER_MODE_CFB)
166 unsigned char iv[16],
167 const unsigned char *input,
168 unsigned char *output);
197 unsigned char iv[16],
198 const unsigned char *input,
199 unsigned char *output);
202#if defined(MBEDTLS_CIPHER_MODE_CTR)
228 unsigned char nonce_counter[16],
229 unsigned char stream_block[16],
230 const unsigned char *input,
231 unsigned char *output);
246 const unsigned char input[16],
247 unsigned char output[16]);
261 const unsigned char input[16],
262 unsigned char output[16]);
264#if !defined(MBEDTLS_DEPRECATED_REMOVED)
265#if defined(MBEDTLS_DEPRECATED_WARNING)
266#define MBEDTLS_DEPRECATED __attribute__((deprecated))
268#define MBEDTLS_DEPRECATED
281 const unsigned char input[16],
282 unsigned char output[16]);
295 const unsigned char input[16],
296 unsigned char output[16]);
298#undef MBEDTLS_DEPRECATED
Configuration options (set of defines)
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.