Home
last modified time | relevance | path

Searched refs:data_size_bytes (Results 1 – 2 of 2) sorted by relevance

/hal_rpi_pico-latest/src/rp2_common/pico_sha256/
Dsha256.c72 …c void write_to_hardware(pico_sha256_state_t *state, const uint8_t *data, size_t data_size_bytes) { in write_to_hardware() argument
82 data_size_bytes, in write_to_hardware()
90 while (data_size_bytes >= 4) { in write_to_hardware()
94 data_size_bytes -= 4; in write_to_hardware()
98 while (data_size_bytes--) { in write_to_hardware()
109 static void update_internal(pico_sha256_state_t *state, const uint8_t *data, size_t data_size_bytes in update_internal() argument
113 if (bytes_left > data_size_bytes) bytes_left = data_size_bytes; in update_internal()
117 data_size_bytes -= bytes_left; in update_internal()
121 if (data_size_bytes > 0) { in update_internal()
122 write_to_hardware(state, data, data_size_bytes); in update_internal()
[all …]
/hal_rpi_pico-latest/src/rp2_common/pico_sha256/include/pico/
Dsha256.h118 void pico_sha256_update(pico_sha256_state_t *state, const uint8_t *data, size_t data_size_bytes);
133 …co_sha256_update_blocking(pico_sha256_state_t *state, const uint8_t *data, size_t data_size_bytes);