[][src]Function rc_crypto::digest::digest

pub fn digest(algorithm: &Algorithm, data: &[u8]) -> Result<Digest>

Returns the digest of data using the given digest algorithm.