Function hacl::digest::hash

source ·
pub fn hash(alg: Algorithm, data: &[u8]) -> Vec<u8> 
Expand description

Create the digest for the given data and mode alg. The output has length get_digest_size(alg).