Go to the source code of this file.
Data Structures | |
| struct | pico_sha256_state |
| SHA-256 state used by the API. More... | |
Typedefs | |
| typedef struct pico_sha256_state | pico_sha256_state_t |
| SHA-256 state used by the API. | |
Functions | |
| void | pico_sha256_cleanup (pico_sha256_state_t *state) |
| Release the internal lock on the SHA-256 hardware. | |
| int | pico_sha256_try_start (pico_sha256_state_t *state, enum sha256_endianness endianness, bool use_dma) |
| Start a SHA-256 calculation returning immediately with an error if the SHA-256 hardware is not available. | |
| int | pico_sha256_start_blocking_until (pico_sha256_state_t *state, enum sha256_endianness endianness, bool use_dma, absolute_time_t until) |
| Start a SHA-256 calculation waiting for a defined period for the SHA-256 hardware to be available. | |
| static int | pico_sha256_start_blocking (pico_sha256_state_t *state, enum sha256_endianness endianness, bool use_dma) |
| Start a SHA-256 calculation, blocking forever waiting until the SHA-256 hardware is available. | |
| void | pico_sha256_update (pico_sha256_state_t *state, const uint8_t *data, size_t data_size_bytes) |
| Add byte data to be SHA-256 calculation. | |
| void | pico_sha256_update_blocking (pico_sha256_state_t *state, const uint8_t *data, size_t data_size_bytes) |
| Add byte data to be SHA-256 calculation. | |
| void | pico_sha256_finish (pico_sha256_state_t *state, sha256_result_t *out) |
| Finish the SHA-256 calculation and return the result. | |