pub fn hash_bytes( format: ObjectFormat, data: &[u8], ) -> Result<Digest, HashError>
Hash arbitrary bytes with the given object format.