37 #include "hal_platform.h" 39 #ifdef HAL_AES_MODULE_ENABLED 41 #ifdef HAL_AES_USE_PHYSICAL_MEMORY_ADDRESS 248 #include "hal_define.h" 261 #define HAL_AES_BLOCK_SIZES (16) 265 #define HAL_AES_KEY_LENGTH_128 (16) 269 #define HAL_AES_KEY_LENGTH_192 (24) 273 #define HAL_AES_KEY_LENGTH_256 (32) 277 #define HAL_AES_CBC_IV_LENGTH (16) No error occurred.
Definition: hal_aes.h:292
This structure defines the buffer used in the operation.
Definition: hal_aes.h:304
#define HAL_AES_CBC_IV_LENGTH
This macro defines the size of initial vector.
Definition: hal_aes.h:277
hal_aes_status_t hal_aes_cbc_encrypt(hal_aes_buffer_t *encrypted_text, hal_aes_buffer_t *plain_text, hal_aes_buffer_t *key, uint8_t init_vector[HAL_AES_CBC_IV_LENGTH])
This function provides AES encryption in CBC mode.
An error occurred.
Definition: hal_aes.h:291
hal_aes_status_t hal_aes_ecb_encrypt(hal_aes_buffer_t *encrypted_text, hal_aes_buffer_t *plain_text, hal_aes_buffer_t *key)
This function provides AES encryption in EBC mode.
uint8_t * buffer
Data buffer.
Definition: hal_aes.h:305
uint32_t length
Data length.
Definition: hal_aes.h:306
hal_aes_status_t
This enum defines the HAL interface return value.
Definition: hal_aes.h:290
hal_aes_status_t hal_aes_ecb_decrypt(hal_aes_buffer_t *plain_text, hal_aes_buffer_t *encrypted_text, hal_aes_buffer_t *key)
This function provides AES decryption in EBC mode.
hal_aes_status_t hal_aes_cbc_decrypt(hal_aes_buffer_t *plain_text, hal_aes_buffer_t *encrypted_text, hal_aes_buffer_t *key, uint8_t init_vector[HAL_AES_CBC_IV_LENGTH])
This function provides AES decryption in CBC mode.