ParagonIE_Sodium_Core_Curve25519::negative

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core_Curve25519::negative( int|string $char )

Parameters Parameters

$char

(Required)

Return Return

(int) (1 = yes, 0 = no)

Source Source

File: wp-includes/sodium_compat/src/Core/Curve25519.php

    public static function negative($char)
    {
        if (is_int($char)) {
            return $char < 0 ? 1 : 0;
        }
        $x = self::chrToInt(self::substr($char, 0, 1));
        return (int) ($x >> 63);
    }

Advertisement

Advertisement

Leave a Reply