Module sha256

Source
Expand description

This is the SHA-256 Algorithm. You can use the standard implementations of sha_256 and sha_224 or you can use custom constants and initial hash values with sha256_internal

Functionsยง

sha256_internal
The internal loop of the SHA-256 algorithm, you can use different initial hash and constant values by implementing the Constants trait on a new object
sha_224
The SHA-224 Algorithm, only use this after having preprocessed your data into message blocks Note that this is essentially the SHA-256 algorithm, except with different constants and a truncated result.
sha_256
The SHA-256 Algorithm, only use this after having preprocessed your data into message blocks