/// Perform a one-shot HMAC computation
///
/// A convenience method when the entire input is available in a
/// single contigious buffer.
Perform a one-shot HMAC computation
A convenience method when the entire input is available in a
single contigious buffer.
Perform a one - shot HMAC computation A convenience method when the entire input is available in a single contigious buffer .
pub fn hmac(key: &[u8], input: &[u8]) -> Vec<u8> {
        let mut hmac = Self::new(key);
        hmac.write(input);
        hmac.finish()
    }
pub fn hmac ( key : & [ u8 ] , input : & [ u8 ] ) -> Vec < u8 > { let mut hmac = Self :: new ( key ) ; hmac . write ( input ) ; hmac . finish ( ) }
Perform a one-shot HMAC computation
A convenience method when the entire input is available in a
single contigious buffer.
Perform a one - shot HMAC computation A convenience method when the entire input is available in a single contigious buffer .
key
&[u8]
input
&[u8]