Function hash_bytes

Source
pub fn hash_bytes(data: &[u8]) -> Result<Hash>
Expand description

Hash the data using sha256.

This does not pad or check if the data is word aligned.