SHA-256 state used by the API. More...
#include <sha256.h>
Data Fields | |
| enum sha256_endianness | endianness |
| Endianness for data in and data out. | |
| int8_t | channel |
| DMA channel in use, or -1 if DMA is not being used. | |
| bool | locked |
| Whether the SHA-256 hardware lock is currently held. | |
| uint8_t | cache_used |
| Number of bytes currently stored in the partial-word cache. | |
| union { | |
| uint32_t word | |
| Cache contents as a 32-bit word. | |
| uint8_t bytes [4] | |
| Cache contents as individual bytes. | |
| } | cache |
| Partial-word cache for data not yet written to hardware. | |
| dma_channel_config | config |
| DMA channel configuration. | |
| size_t | total_data_size |
| Total number of bytes added to the calculation so far. | |
SHA-256 state used by the API.