pub fn hmac(
mode: Algorithm,
key: &[u8],
data: &[u8],
tag_length: Option<usize>,
) -> Vec<u8> ⓘ
Expand description
Compute the HMAC value with the given mode
and key
on data
with an
output tag length of tag_length
.
Returns a vector of length tag_length
.