pub fn hash(data: &[u8], algo: HashAlgorithm) -> Vec<u8> ⓘ
Computes the hash of the given data using the specified algorithm.