public static function ParagonIE_Sodium_Crypto32::auth_verify in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Crypto32.php \ParagonIE_Sodium_Crypto32::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_Crypto32::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/ Crypto32.php, line 405
Class
- ParagonIE_Sodium_Crypto32
- Class ParagonIE_Sodium_Crypto
Code
public static function auth_verify($mac, $message, $key) {
return ParagonIE_Sodium_Core32_Util::hashEquals($mac, self::auth($message, $key));
}