Function dryoc::classic::crypto_onetimeauth::crypto_onetimeauth_verify
source · pub fn crypto_onetimeauth_verify(
mac: &Mac,
input: &[u8],
key: &Key
) -> Result<(), Error>
Expand description
Verifies that mac
is the correct authenticator for message
using key
.
Returns Ok(())
if the message authentication code is valid.
Equivalent to libsodium’s crypto_onetimeauth_verify
.