ParagonIE_Sodium_Core_BLAKE2b::xor64() –

You appear to be a bot. Output may be restricted

Description

Usage

$SplFixedArray = ParagonIE_Sodium_Core_BLAKE2b::xor64( $x, $y );

Parameters

$x
( SplFixedArray ) required
$y
( SplFixedArray ) required

Returns

SplFixedArray

Source

File name: wordpress/wp-includes/sodium_compat/src/Core/BLAKE2b.php


Lines:

1 to 23 of 23
    protected static function xor64(SplFixedArray $x, SplFixedArray $y)
    {
        if (PHP_INT_SIZE === 4) {
            throw new SodiumException("Error, use 32-bit");
        }
        if (!is_numeric($x[0])) {
            throw new SodiumException('x[0] is not an integer');
        }
        if (!is_numeric($x[1])) {
            throw new SodiumException('x[1] is not an integer');
        }
        if (!is_numeric($y[0])) {
            throw new SodiumException('y[0] is not an integer');
        }
        if (!is_numeric($y[1])) {
            throw new SodiumException('y[1] is not an integer');
        }
        return self::new64(
            (int) (($x[0] ^ $y[0]) & 0xffffffff),
            (int) (($x[1] ^ $y[1]) & 0xffffffff)
        );
    }
 

 View on GitHub View on Trac