PHP.nl

sodium_crypto_auth_verify

sodium_crypto_auth_verify

Verifies that the tag is valid for the message

bool **sodium_crypto_auth_verify** string $mac string $message string $key

Verify the authentication tag is valid for a given message and key.

Unlike with digital signatures (e.g. ), any party capable of verifying a message is also capable of authenticating their own messages. (Hence, symmetric authentication.) sodium_crypto_sign_verify_detached

mac Authentication tag produced by sodium_crypto_auth

messageMessage

keyAuthentication key

return.success