|
SmartSnippets DA1459x SDK
|
HASH engine configuration structure. More...
#include <hw_hash.h>
Data Fields | |
| HW_HASH_TYPE | type: 3 |
| bool | wait_more_input |
| uint32_t | input_data_len |
| uint32_t | output_data_len |
| uint32_t | input_data_addr |
| uint32_t | output_data_addr |
| hw_aes_hash_cb | callback |
HASH engine configuration structure.
There are some restrictions in terms of the acceptable values of the data_len with regards to Input Data Mode (wait_more_input) indicated by the next table:
| wait_more_input = true | wait_more_input = false |
|---|---|
| multiple of 8 | no restrictions |
Moreover, there are restrictions with regards to the maximum length of the output data. Please refer to enumerator HW_HASH_OUTPUT_LENGTH_MAX for more information.
| hw_aes_hash_cb hw_hash_config_t::callback |
HASH callback function
| uint32_t hw_hash_config_t::input_data_addr |
HASH input data address
| uint32_t hw_hash_config_t::input_data_len |
Number of input bytes to be processed
| uint32_t hw_hash_config_t::output_data_addr |
HASH output data address
| uint32_t hw_hash_config_t::output_data_len |
HASH output length
| HW_HASH_TYPE hw_hash_config_t::type |
HASH type
| bool hw_hash_config_t::wait_more_input |
HASH input data mode
1.8.16