ParagonIE_Sodium_Core32_BLAKE2b::load64

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_BLAKE2b::load64( SplFixedArray $x, int $i )

Parameters Parameters

$x

(Required)

$i

(Required)

Return Return

(ParagonIE_Sodium_Core32_Int64)

Source Source

File: wp-includes/sodium_compat/src/Core32/BLAKE2b.php

    public static function load64($x, $i)
    {
        /** @var int $l */
        $l = (int) ($x[$i])
             | ((int) ($x[$i+1]) << 8)
             | ((int) ($x[$i+2]) << 16)
             | ((int) ($x[$i+3]) << 24);
        /** @var int $h */
        $h = (int) ($x[$i+4])
             | ((int) ($x[$i+5]) << 8)
             | ((int) ($x[$i+6]) << 16)
             | ((int) ($x[$i+7]) << 24);
        return self::new64($h, $l);
    }

Advertisement

Advertisement

Leave a Reply