v2.0.0
Data Structures | Typedefs | Functions
sha256.h File Reference
`#include "pico/time.h"`
`#include "hardware/dma.h"`
`#include "hardware/sha256.h"`
Include dependency graph for sha256.h:

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
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. More...
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. More...
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. More...
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. More...
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. More...
void | pico_sha256_finish (pico_sha256_state_t *state, sha256_result_t *out)
| Finish the SHA-256 calculation and return the result. More...