pub fn digest(algorithm: &'static Algorithm, data: &[u8]) -> Digest
Returns the digest of data using the given digest algorithm.
data