mundane::hmac

Function hmac

Source
pub fn hmac<H: Hasher>(key: &[u8], bytes: &[u8]) -> H::Digest
Expand description

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.