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