Skip to main content

hash

Function hash 

Source
pub fn hash(input: &[u8]) -> [u8; 32]
Expand description

Convenience function for single-shot hashing

Creates a new hasher, computes the hash, and returns it. For multiple hashes, prefer creating a UniversalHash instance and reusing it to avoid repeated memory allocation.