void update(uint8_t const *buffer, size_t buffer_size)
Add data to the SHA256 context.
uint32_t state_[8]
State of the SHA256 hash.
size_t curlen_
Current length of the SHA256 hash.
void transform_function(uint8_t const *buffer)
Compress 512-bits.
void reset()
Reset the SHA256 context.
Context()
Construct a SHA256 context.
uint64_t length_
Length of the SHA256 hash.
uint8_t buf_[64]
Buffer of the SHA256 hash.
Hash finalize()
Performs the final calculation of the hash and returns the digest (32 byte buffer containing 256bit h...