ParagonIE_Sodium_Core32_Curve25519::equal() –

You appear to be a bot. Output may be restricted

Description

Usage

$int = ParagonIE_Sodium_Core32_Curve25519::equal( $b, $c );

Parameters

$b
( int ) required
$c
( int ) required

Returns

int

Source

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


Lines:

1 to 12 of 12
    public static function equal($b, $c)
    {
        $b0 = $b & 0xffff;
        $b1 = ($b >> 16) & 0xffff;
        $c0 = $c & 0xffff;
        $c1 = ($c >> 16) & 0xffff;

        $d0 = (($b0 ^ $c0) - 1) >> 31;
        $d1 = (($b1 ^ $c1) - 1) >> 31;
        return ($d0 & $d1) & 1;
    }
 

 View on GitHub View on Trac