HAL_AES_ALT

MBEDTLS IMPLEMENTATION HAL AES TYPES

group MBEDTLS_IMPLEMENTATION_HAL_AES_TYPES

AES context structure definitions for mbedTLS HAL.

struct mbedtls_aes_context
#include <hal_aes_alt.h>

AES context structure.

Public Members

uint32_t aes_key [ 8 ]

Size of key

uint32_t Algorithm

Decryption key

uint32_t ctx_save_cr

Algorithm set (or not) in driver

uint8_t aes_key [ 32 ]

Encryption/Decryption key

size_t aes_key_size

Aes Key size

cmox_cipher_handle_t * cipher_ctx

Cipher ctx

cmox_cbc_handle_t cbc_ctx

Cbc ctx

cmox_ecb_handle_t ecb_ctx

Ecb ctx

uint8_t ctx_init

Context init indicator

struct mbedtls_aes_xts_context
#include <hal_aes_alt.h>

The AES XTS context-type definition.

Public Members

mbedtls_aes_context crypt

The AES context to use for AES block encryption or decryption.

mbedtls_aes_context tweak

The AES context used for tweak computation.

MBEDTLS IMPLEMENTATION HAL AES ALT FUNCTIONS

group MBEDTLS_IMPLEMENTATION_HAL_AES_ALT_FUNCTIONS

Public API functions for HAL AES alternate implementation.

Defines

GET_UINT64_LE ( n , b , i )
PUT_UINT64_LE ( n , b , i )

Functions

void mbedtls_aes_init ( mbedtls_aes_context * ctx )
void mbedtls_aes_free ( mbedtls_aes_context * ctx )
void mbedtls_aes_xts_init ( mbedtls_aes_xts_context * ctx )
void mbedtls_aes_xts_free ( mbedtls_aes_xts_context * ctx )
int mbedtls_aes_setkey_enc ( mbedtls_aes_context * ctx , const unsigned char * key , unsigned int keybits )
int mbedtls_aes_setkey_dec ( mbedtls_aes_context * ctx , const unsigned char * key , unsigned int keybits )
int mbedtls_aes_xts_setkey_enc ( mbedtls_aes_xts_context * ctx , const unsigned char * key , unsigned int keybits )
int mbedtls_aes_xts_setkey_dec ( mbedtls_aes_xts_context * ctx , const unsigned char * key , unsigned int keybits )
int mbedtls_aes_crypt_ecb ( mbedtls_aes_context * ctx , int mode , const unsigned char input [ 16 ] , unsigned char output [ 16 ] )
int mbedtls_aes_crypt_xts ( mbedtls_aes_xts_context * ctx , int mode , size_t length , const unsigned char data_unit [ 16 ] , const unsigned char * input , unsigned char * output )
int mbedtls_internal_aes_encrypt ( mbedtls_aes_context * ctx , const unsigned char input [ 16 ] , unsigned char output [ 16 ] )
int mbedtls_internal_aes_decrypt ( mbedtls_aes_context * ctx , const unsigned char input [ 16 ] , unsigned char output [ 16 ] )