Go to the documentation of this file.
57 #ifdef ENV_USE_FREERTOS
65 #ifdef HAL_AES_MODULE_ENABLED
174 uint16_t
app_aes_encrypt_sync(uint32_t *p_plain_data, uint32_t number, uint32_t *p_cypher_data, uint32_t timeout);
188 uint16_t
app_aes_decrypt_sync(uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data, uint32_t timeout);
225 #ifdef ENV_RTOS_USE_SEMP
237 uint16_t app_aes_decrypt_sem_sync(uint32_t *p_cypher_data, uint32_t number, uint32_t *p_plain_data);
250 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.
Definition: app_aes.h:75
app_aes_mode_t
AES encryption and decryption mode Enumerations definition.
Definition: app_aes.h:85
AES parameters structure definition.
Definition: app_aes.h:110
@ APP_AES_TYPE_POLLING
Definition: app_aes.h:77
AES event structure definition.
Definition: app_aes.h:120
@ APP_AES_EVT_DONE
Definition: app_aes.h:97
@ APP_AES_TYPE_MAX
Definition: app_aes.h:78
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.
Definition: gr55xx_hal_aes.h:101
void(* app_aes_evt_handler_t)(app_aes_evt_t *p_evt)
AES event callback definition.
Definition: app_aes.h:128
aes_handle_t * app_aes_get_handle(void)
Return the AES handle.
aes_init_t init
Definition: app_aes.h:113
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
Definition: app_aes.h:76
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
Definition: app_aes.h:88
app_aes_evt_type_t type
Definition: app_aes.h:121
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.
Definition: app_aes.h:95
app_aes_type_t use_type
Definition: app_aes.h:111
AES handle Structure definition.
Definition: gr55xx_hal_aes.h:130
This file contains all the functions prototypes for the HAL module driver.
@ APP_AES_MODE_CBC
Definition: app_aes.h:87
@ APP_AES_MODE_ECB
Definition: app_aes.h:86
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
Definition: app_aes.h:112
@ APP_AES_EVT_ERROR
Definition: app_aes.h:96
uint32_t error_code
Definition: app_aes.h:122