pub fn sign(key: &[u8], msg: &[u8]) -> Vec<u8> {
    let key = hmac::SigningKey::new(&digest::SHA256, key);
    let signature = hmac::sign(&key, msg);
    signature.as_ref().into_iter().cloned().collect()
}
/// Creates a HMAC SHA256 signature.
Creates a HMAC SHA256 signature.
Creates a HMAC SHA256 signature .
pub fn sign(key: &[u8], msg: &[u8]) -> Vec<u8> {
    let key = hmac::SigningKey::new(&digest::SHA256, key);
    let signature = hmac::sign(&key, msg);
    signature.as_ref().into_iter().cloned().collect()
}
pub fn sign ( key : & [ u8 ] , msg : & [ u8 ] ) -> Vec < u8 > { let key = hmac :: SigningKey :: new ( & digest :: SHA256 , key ) ; let signature = hmac :: sign ( & key , msg ) ; signature . as_ref ( ) . into_iter ( ) . cloned ( ) . collect ( ) }
Creates a HMAC SHA256 signature.
Creates a HMAC SHA256 signature .
key
&[u8]
msg
&[u8]