ParagonIE_Sodium_Crypto32::auth_verify

Advertisement

Summery Summery

HMAC-SHA-512-256 validation. Constant-time via hash_equals().

Syntax Syntax

ParagonIE_Sodium_Crypto32::auth_verify( string $mac, string $message, string $key )

Parameters Parameters

$mac

(Required)

$message

(Required)

$key

(Required)

Return Return

(bool)

Source Source

File: wp-includes/sodium_compat/src/Crypto32.php

    public static function auth_verify($mac, $message, $key)
    {
        return ParagonIE_Sodium_Core32_Util::hashEquals(
            $mac,
            self::auth($message, $key)
        );
    }

Advertisement

Advertisement

Leave a Reply