Module hash_functions

Source
Expand description

§Hash functions

This module defines jets for computing SHA-256 hashes. Be aware that SHA-256 padding isn’t provided and messages should be manually padded.

Functions§

sha_256_block
Update the given 256-bit midstate by running the SHA256 block compression function, using the given 512-bit block.
sha_256_ctx_8_add_1
Add 1 byte to the SHA256 hash engine.
sha_256_ctx_8_add_2
Add 2 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_4
Add 4 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_8
Add 8 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_16
Add 16 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_32
Add 32 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_64
Add 64 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_128
Add 128 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_256
Add 256 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_512
Add 512 bytes to the SHA256 hash engine.
sha_256_ctx_8_add_buffer_511
Add a list of less than 512 bytes to the SHA256 hash engine.
sha_256_ctx_8_finalize
Produce a hash from the current state of the SHA256 hash engine.
sha_256_ctx_8_init
Initialize a default SHA256 hash engine.
sha_256_iv
Return the SHA256 initial value.