/// Compute the HMAC of the given key and input and verify it matches the given signature.
Compute the HMAC of the given key and input and verify it matches the given signature.
Compute the HMAC of the given key and input and verify it matches the given signature .
fn hmac_verify(&self, key: &[u8], input: &[u8], signature: &[u8]) -> Result<()> {
        match self {
            ScramVersion::Sha1 => mac_verify::<Hmac<Sha1>>(key, input, signature),
            ScramVersion::Sha256 => mac_verify::<Hmac<Sha256>>(key, input, signature),
        }
    }
fn hmac_verify ( & self , key : & [ u8 ] , input : & [ u8 ] , signature : & [ u8 ] ) -> Result < ( ) > { match self { ScramVersion :: Sha1 => mac_verify :: < Hmac < Sha1 > > ( key , input , signature ) , ScramVersion :: Sha256 => mac_verify :: < Hmac < Sha256 > > ( key , input , signature ) , } }
Compute the HMAC of the given key and input and verify it matches the given signature.
Compute the HMAC of the given key and input and verify it matches the given signature .
&self
key
&[u8]
input
&[u8]
signature
&[u8]