Go to the documentation of this file.
57 #ifdef ENV_USE_FREERTOS
65 #ifdef HAL_AES_MODULE_ENABLED
175 uint16_t
app_aes_encrypt_sync(uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data, uint32_t timeout);
189 uint16_t
app_aes_decrypt_sync(uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data, uint32_t timeout);
226 #ifdef ENV_RTOS_USE_SEMP
238 uint16_t app_aes_decrypt_sem_sync(uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data);
251 uint16_t app_aes_encrypt_sem_sync(uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data);
app_aes_type_t
AES operating mode Enumerations definition.
app_aes_mode_t
AES encryption and decryption mode Enumerations definition.
AES parameters structure definition.
@ APP_AES_TYPE_POLLING
Polling operation mode.
AES event structure definition.
@ APP_AES_EVT_DONE
Encryption and decryption completed.
@ APP_AES_TYPE_MAX
Only for check parameter, not used as input parameters.
uint16_t app_aes_encrypt_sync(uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data, uint32_t timeout)
Encrypted an amount of data in blocking mode.
AES Init Structure definition.
void(* app_aes_evt_handler_t)(app_aes_evt_t *p_evt)
AES event callback definition.
aes_handle_t * app_aes_get_handle(void)
Return the AES handle.
aes_init_t init
AES operation parameters
uint16_t app_aes_decrypt_async(uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data)
Decrypted an amount of data in non-blocking mode.
@ APP_AES_TYPE_INTERRUPT
Interrupt operation mode.
uint16_t app_aes_decrypt_sync(uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data, uint32_t timeout)
Decrypted an amount of data in blocking mode.
@ APP_AES_MODE_MAX
Only for check parameter, not used as input parameters.
app_aes_evt_type_t type
Type of event.
uint16_t app_aes_init(app_aes_params_t *p_params, app_aes_evt_handler_t evt_handler)
Initialize the APP AES DRIVER according to the specified parameters in the app_aes_params_t and app_a...
uint16_t app_aes_deinit(void)
De-initialize the APP AES DRIVER peripheral.
app_aes_evt_type_t
AES event Enumerations definition.
app_aes_type_t use_type
Specifies the operation mode of AES.
AES handle Structure definition.
This file contains all the functions prototypes for the HAL module driver.
@ APP_AES_TYPE_DMA
DMA operation mode.
@ APP_AES_MODE_CBC
CBC encryption mode.
@ APP_AES_MODE_ECB
ECB encryption mode.
uint16_t app_aes_encrypt_async(uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data)
Encrypted an amount of data in non-blocking mode.
Header file of app rtos config code.
Header file of app driver error code.
app_aes_mode_t use_mode
AES encryption mode.
@ APP_AES_EVT_ERROR
Error reported by AES peripheral.
uint32_t error_code
AES Error code .