rc_crypto::digest

Function digest

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

Returns the digest of data using the given digest algorithm.