Function hmac

Source
pub fn hmac(
    alg: Algorithm,
    key: &[u8],
    data: &[u8],
    tag_length: Option<usize>,
) -> Vec<u8> 
Expand description

Compute the HMAC value with the given alg and key on data with an output tag length of tag_length. Returns a vector of length tag_length.