pico_sha256_try_start() function
Start a SHA-256 calculation returning immediately with an error if the SHA-256 hardware is not 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.
Return value
Returns PICO_OK if the hardware was available for use and the sha256 calculation could be started, otherwise an error is returned