pub fn hmac<H: Hasher>(key: &[u8], bytes: &[u8]) -> H::Digest
Computes the HMAC of a sequence of bytes under a key.
hmac creates a new instance of Hmac<H> using the key key, adds bytes to it, and then computes the HMAC.
hmac
Hmac<H>
key
bytes