Function in_toto::crypto::calculate_hashes
source · pub fn calculate_hashes<R: Read>(
read: R,
hash_algs: &[HashAlgorithm]
) -> Result<(u64, HashMap<HashAlgorithm, HashValue>)>
Expand description
Calculate the size and hash digest from a given Read
.