rc_crypto::hmac

Function verify

Source
pub fn verify(
    key: &VerificationKey,
    data: &[u8],
    signature: &[u8],
) -> Result<()>
Expand description

Calculate the HMAC of data using key and verify it corresponds to the provided signature.