sodium_crypto_auth_verify
(PHP 7 >= 7.2.0, PHP 8)
sodium_crypto_auth_verify — Verifies that the tag is valid for the message
说明
Verify the authentication tag is valid for a given message and key.
Unlike with digital signatures (e.g. sodium_crypto_sign_verify_detached()), any party capable of verifying a message is also capable of authenticating their own messages. (Hence, symmetric authentication.)
参数
mac
-
Authentication tag produced by sodium_crypto_auth()
message
-
Message
key
-
Authentication key
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/function.sodium-crypto-auth-verify.php