Skip to main content

Module hash

Module hash 

Source

Traits§

Sha2Digest
Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.

Functions§

sha256_array
Compute the SHA-256 hash of bytes and return it as a fixed [u8; 32], avoiding the heap allocation done by sha256_bytes.
sha256_bytes
Sha256 is used in places where cryptographic security is not required, as sha256 has a significant speed improvement over Keccak.

Type Aliases§

Sha256Digest
SHA-256 hasher.