pico_sha256_start_blocking_until() function
Start a SHA-256 calculation waiting for a defined period for the SHA-256 hardware to be available Initialises the hardware and state ready to start a new SHA-256 calculation. Only one instance can be started at any time.
Arguments
state
A pointer to a pico_sha256_state_t instance
endianness
SHA256_BIG_ENDIAN or SHA256_LITTLE_ENDIAN for data in and data out
use_dma
Set to true to use DMA internally to copy data to hardware. This is quicker at the expense of hardware DMA resources.
until
How long to wait for the SHA hardware to be available
Return value
Returns PICO_OK if the hardware was available for use and the sha256 calculation could be started in time, otherwise an error is returned