ParagonIE_Sodium_Core32_Curve25519::negative() –

You appear to be a bot. Output may be restricted

Description

Usage

$int = ParagonIE_Sodium_Core32_Curve25519::negative( $char );

Parameters

$char
( string|int ) required

Returns

int (1 = yes, 0 = no)

Source

File name: wordpress/wp-includes/sodium_compat/src/Core32/Curve25519.php


Lines:

1 to 11 of 11
    public static function negative($char)
    {
        if (is_int($char)) {
            return $char < 0 ? 1 : 0;
        }
        
/** @var string $char */
        $x = self::chrToInt(self::substr($char, 0, 1));
        return (int) ($x >> 31);
    }
 

 View on GitHub View on Trac