Go to the documentation of this file.
63 #ifdef HAL_AES_MODULE_ENABLED
93 #ifdef APP_DRIVER_WAKEUP_CALL_FUN
194 uint16_t
app_aes_encrypt_sync(uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data, uint32_t timeout);
208 uint16_t
app_aes_decrypt_sync(uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data, uint32_t timeout);
app_aes_mode_t
AES encryption and decryption mode Enumerations definition.
AES parameters structure definition.
app_aes_state_t
App aes state types.
AES event structure definition.
@ APP_AES_EVT_DONE
Encryption and decryption completed.
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 event structure definition.
AES Init Structure 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.
aes_env_t aes_env
AES event structure.
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_evt_handler_t evt_handler
AES event callback.
This file contains all the functions prototypes for the HAL module driver.
bool start_flag
AES start flag.
@ 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_state_t aes_state
App aes state types.
AES handle Structure definition.
app_aes_mode_t use_mode
AES encryption mode.
aes_handle_t handle
AES handle Structure.
@ 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 driver error code.
Header file of app driver config code.
app_aes_mode_t use_mode
AES encryption mode.
void(* app_aes_evt_handler_t)(app_aes_evt_t *p_evt)
AES event callback definition.
@ APP_AES_EVT_ERROR
Error reported by AES peripheral.
uint32_t error_code
Error Code.