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.