ParagonIE_Sodium_Core_BLAKE2b::new64() – Turn two 32-bit integers into a fixed array representing a 64-bit integer.

You appear to be a bot. Output may be restricted

Description

Turn two 32-bit integers into a fixed array representing a 64-bit integer.

Usage

$SplFixedArray = ParagonIE_Sodium_Core_BLAKE2b::new64( $high, $low );

Parameters

$high
( int ) required
$low
( int ) required

Returns

SplFixedArray

Source

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


Lines:

1 to 11 of 11
    public static function new64($high, $low)
    {
        if (PHP_INT_SIZE === 4) {
            throw new SodiumException("Error, use 32-bit");
        }
        $i64 = new SplFixedArray(2);
        $i64[0] = $high & 0xffffffff;
        $i64[1] = $low & 0xffffffff;
        return $i64;
    }
 

 View on GitHub View on Trac