ParagonIE_Sodium_Crypto::auth_verify() public WP 1.0
HMAC-SHA-512-256 validation. Constant-time via hash_equals().
{} It's a method of the class: ParagonIE_Sodium_Crypto{}
No Hooks.
Return
true|false
. Null. Nothing.
Usage
$result = ParagonIE_Sodium_Crypto::auth_verify( $mac, $message, $key );
- $mac(string) (required)
- -
- $message(string) (required)
- -
- $key(string) (required)
- -
Code of ParagonIE_Sodium_Crypto::auth_verify() ParagonIE Sodium Crypto::auth verify WP 5.7.1
public static function auth_verify($mac, $message, $key)
{
return ParagonIE_Sodium_Core_Util::hashEquals(
$mac,
self::auth($message, $key)
);
}