HA_PUBFUN void ha_sha1_transform(ha_sha1_context *ctx, const uint8_t *block)
Performs the SHA-1 transformation step on a 512-bit data block.
HA_PUBFUN void ha_sha1_update(ha_sha1_context *ctx, ha_inbuf_t data, size_t len)
Updates the SHA-1 context with new data.
HA_PUBFUN void ha_sha1_final(ha_sha1_context *ctx, ha_digest_t digest)
Finalizes the SHA-1 context and produces the resulting hash digest.
HA_PUBFUN void ha_sha1_hash(ha_inbuf_t data, size_t len, ha_digest_t digest)
Computes the SHA-1 hash for the given input data in one-shot mode.
SHA-1 context structure used to store the internal state during hashing.
uint8_t buffer[HA_SHA1_BLOCK_SIZE]