|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
Structure encoding IO parameters of a hash operation. More...
#include <hash.h>
Data Fields | |
| const uint8_t * | in_buf |
| Start address of the input buffer. | |
| size_t | in_len |
| Number of input bytes to process. | |
| uint8_t * | out_buf |
| Start address of the output buffer. | |
| struct hash_ctx * | ctx |
| Context this packet relates to. | |
Structure encoding IO parameters of a hash operation.
The fields which has not been explicitly called out has to be filled up by the app before calling hash_compute().
| struct hash_ctx* hash_pkt::ctx |
Context this packet relates to.
This can be useful to get the session details, especially for async ops. This is populated by hash_compute() or hash_update().
| const uint8_t* hash_pkt::in_buf |
Start address of the input buffer.
The buffer is allocated by the application and must remain valid for the duration of the operation.
| size_t hash_pkt::in_len |
Number of input bytes to process.
| uint8_t* hash_pkt::out_buf |
Start address of the output buffer.
The buffer is allocated by the application and must remain valid for the duration of the operation. This can be NULL for in-place operations, in which case the driver writes the result to in_buf.