21 #ifndef MBEDTLS_AES_ALT_H
22 #define MBEDTLS_AES_ALT_H
24 #if !defined(MBEDTLS_CONFIG_FILE)
27 #include MBEDTLS_CONFIG_FILE
41 #if defined( MBEDTLS_SLCL_PLUGINS )
49 #define MBEDTLS_AES_ENCRYPT 1
50 #define MBEDTLS_AES_DECRYPT 0
53 #define MBEDTLS_ERR_AES_NOT_SUPPORTED ((int)MBEDTLS_ECODE_AESDRV_NOT_SUPPORTED)
54 #define MBEDTLS_ERR_AES_AUTHENTICATION_FAILED ((int)MBEDTLS_ECODE_AESDRV_AUTHENTICATION_FAILED)
55 #define MBEDTLS_ERR_AES_OUT_OF_RESOURCES ((int)MBEDTLS_ECODE_AESDRV_OUT_OF_RESOURCES)
56 #define MBEDTLS_ERR_AES_INVALID_PARAM ((int)MBEDTLS_ECODE_AESDRV_INVALID_PARAM)
58 #if defined(MBEDTLS_AES_ALT)
70 #if defined( MBEDTLS_SLCL_PLUGINS )
95 #if defined( MBEDTLS_SLCL_PLUGINS )
178 unsigned int keybits );
190 unsigned int keybits );
204 const unsigned char input[16],
205 unsigned char output[16] );
207 #if defined(MBEDTLS_CIPHER_MODE_CBC)
233 unsigned char iv[16],
234 const unsigned char *input,
235 unsigned char *output );
238 #if defined(MBEDTLS_CIPHER_MODE_CFB)
268 unsigned char iv[16],
269 const unsigned char *input,
270 unsigned char *output );
299 unsigned char iv[16],
300 const unsigned char *input,
301 unsigned char *output );
304 #if defined(MBEDTLS_CIPHER_MODE_CTR)
330 unsigned char nonce_counter[16],
331 unsigned char stream_block[16],
332 const unsigned char *input,
333 unsigned char *output );
int mbedtls_aes_crypt_ecb(mbedtls_aes_context *ctx, int mode, const unsigned char input[16], unsigned char output[16])
AES-ECB block encryption/decryption.
int mbedtls_aes_self_test(int verbose)
Checkup routine.
Compatibility names (set of defines)
Definitions for AES based ciphers with CRYPTO hw acceleration.
void mbedtls_aes_init(mbedtls_aes_context *ctx)
Initialize AES context.
int mbedtls_aes_setkey_enc(mbedtls_aes_context *ctx, const unsigned char *key, unsigned int keybits)
AES key schedule (encryption)
void mbedtls_aes_free(mbedtls_aes_context *ctx)
Clear AES context.
mbedtls_device_io_mode
Enum defines which data I/O mode to use for moving data to/from the AES/CRYPTO hardware module...
Silicon Labs specific mbedTLS defintitions.
int mbedtls_aes_setkey_dec(mbedtls_aes_context *ctx, const unsigned char *key, unsigned int keybits)
AES key schedule (decryption)
Data I/O mode specific configuration structure.