Firmware SDK
|
Library for SHA256 hash. More...
Functions | |
void | twr_sha256_init (twr_sha256_t *self) |
Initialize SHA256 structure. More... | |
void | twr_sha256_update (twr_sha256_t *self, const void *buffer, size_t length) |
Compute SHA256 from data. More... | |
void | twr_sha256_final (twr_sha256_t *self, uint8_t *hash, bool little_endian) |
Finalize SHA256 computation and read the final hash. More... | |
Library for SHA256 hash.
void twr_sha256_final | ( | twr_sha256_t * | self, |
uint8_t * | hash, | ||
bool | little_endian | ||
) |
Finalize SHA256 computation and read the final hash.
[in] | self | SHA256 instance |
[in] | hash | pointer to the array where the hash will be copied |
[in] | little_endian | endian format |
Definition at line 58 of file twr_sha256.c.
Referenced by twr_config_load(), and twr_config_save().
void twr_sha256_init | ( | twr_sha256_t * | self | ) |
Initialize SHA256 structure.
[in] | self | SHA256 instance |
Definition at line 26 of file twr_sha256.c.
Referenced by twr_config_load(), and twr_config_save().
void twr_sha256_update | ( | twr_sha256_t * | self, |
const void * | buffer, | ||
size_t | length | ||
) |
Compute SHA256 from data.
[in] | self | SHA256 instance |
[in] | buffer | data |
[in] | length | data length |
Definition at line 40 of file twr_sha256.c.
Referenced by twr_config_load(), and twr_config_save().