public static function ParagonIE_Sodium_Crypto::auth_verify in Automatic Updates 8
Same name and namespace in other branches
- 7 vendor/paragonie/sodium_compat/src/Crypto.php \ParagonIE_Sodium_Crypto::auth_verify()
HMAC-SHA-512-256 validation. Constant-time via hash_equals().
@internal Do not use this directly. Use ParagonIE_Sodium_Compat.
Parameters
string $mac:
string $message:
string $key:
Return value
bool
Throws
SodiumException
TypeError
1 call to ParagonIE_Sodium_Crypto::auth_verify()
- ParagonIE_Sodium_Compat::crypto_auth_verify in vendor/
paragonie/ sodium_compat/ src/ Compat.php - Verify the MAC of a message previously authenticated with crypto_auth.
File
- vendor/
paragonie/ sodium_compat/ src/ Crypto.php, line 405
Class
- ParagonIE_Sodium_Crypto
- Class ParagonIE_Sodium_Crypto
Code
public static function auth_verify($mac, $message, $key) {
return ParagonIE_Sodium_Core_Util::hashEquals($mac, self::auth($message, $key));
}