void sha1_init_hmac(sha1_context *ctx, const void *key, size_t key_length)
Initialize SHA-1 message digest context with MAC.
void sha1_update(sha1_context *ctx, const void *data, size_t len)
Update the SHA-1 context with a portion of the message being hashed.
void sha1(void *digest, const void *data, size_t len)
Calculate a SHA1 hash from the given data.
uint8_t buffer_offset
internal state variable to keep track if the buffer is filled before proceeding to hash this block