Skip to main content

hash_from_reader

Function hash_from_reader 

Source
pub fn hash_from_reader(reader: &mut dyn Read) -> Result<String, SigmfError>
Expand description

Computes the SHA-512 digest of everything remaining in reader.

The reader is consumed in 64 KiB chunks until end of input; reads that fail with std::io::ErrorKind::Interrupted are retried.

ยงErrors

Returns SigmfError::Io if reading fails.