Traits§
- Sha2
Digest - Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.
Functions§
- sha256_
array - Compute the SHA-256 hash of
bytesand return it as a fixed[u8; 32], avoiding the heap allocation done bysha256_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§
- Sha256
Digest - SHA-256 hasher.