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§
- Update the given 256-bit midstate by running the SHA256 block compression function, using the given 512-bit block.
- Add 1 byte to the SHA256 hash engine.
- Add 2 bytes to the SHA256 hash engine.
- Add 4 bytes to the SHA256 hash engine.
- Add 8 bytes to the SHA256 hash engine.
- Add 16 bytes to the SHA256 hash engine.
- Add 32 bytes to the SHA256 hash engine.
- Add 64 bytes to the SHA256 hash engine.
- Add 128 bytes to the SHA256 hash engine.
- Add 256 bytes to the SHA256 hash engine.
- Add 512 bytes to the SHA256 hash engine.
- Add a list of less than 512 bytes to the SHA256 hash engine.
- Produce a hash from the current state of the SHA256 hash engine.
- Initialize a default SHA256 hash engine.
- Return the SHA256 initial value.