pub fn hash<U>(data: impl AsRef<[u8]>) -> U::Digestwhere U: Update,
Computes the hash of the given input.