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