|
SmartSnippets DA1459x SDK
|
AES engine configuration structure. More...
#include <hw_aes.h>
Data Fields | |
| HW_AES_MODE | mode: 2 |
| HW_AES_OPERATION | operation: 1 |
| HW_AES_KEY_SIZE | key_size: 2 |
| HW_AES_KEY_EXPAND | key_expand: 1 |
| HW_AES_OUTPUT_DATA_MODE | output_data_mode: 1 |
| bool | wait_more_input |
| hw_aes_hash_cb | callback |
| const uint8_t * | iv_cnt_ptr |
| uint32_t | keys_addr |
| uint32_t | input_data_addr |
| uint32_t | output_data_addr |
| uint32_t | input_data_len |
AES engine configuration structure.
| mode | wait_more_input = true | wait_more_input = false |
|---|---|---|
| HW_AES_ECB | multiple of 16 | multiple of 16 |
| HW_AES_CBC | multiple of 16 | no restrictions |
| HW_AES_CTR | multiple of 16 | no restrictions |
| hw_aes_hash_cb hw_aes_config_t::callback |
AES callback function
| uint32_t hw_aes_config_t::input_data_addr |
AES input data address
| uint32_t hw_aes_config_t::input_data_len |
Bytes of input data to be processed
| const uint8_t* hw_aes_config_t::iv_cnt_ptr |
Pointer of the initialization vector in CBC mode or the initialization counter in CTR Mode
| HW_AES_KEY_EXPAND hw_aes_config_t::key_expand |
AES key expansion mode
| HW_AES_KEY_SIZE hw_aes_config_t::key_size |
AES key size
| uint32_t hw_aes_config_t::keys_addr |
The address of the AES Keys which can reside either in OTP or in RAM. In the former case use the hw_otpc_get_aes_key_address() to get their address.
| HW_AES_MODE hw_aes_config_t::mode |
AES mode
| HW_AES_OPERATION hw_aes_config_t::operation |
AES operation, e.g. encryption or decryption
| uint32_t hw_aes_config_t::output_data_addr |
AES output data address
| HW_AES_OUTPUT_DATA_MODE hw_aes_config_t::output_data_mode |
AES output data mode
| bool hw_aes_config_t::wait_more_input |
AES input data mode
1.8.16