ParagonIE_Sodium_Core32_BLAKE2b::store64

Advertisement

Syntax Syntax

ParagonIE_Sodium_Core32_BLAKE2b::store64( SplFixedArray $x, int $i, ParagonIE_Sodium_Core32_Int64 $u )

Parameters Parameters

$x

(SplFixedArray) (Required)

$i

(int) (Required)

$u

(ParagonIE_Sodium_Core32_Int64) (Required)

Return Return

(void)

Source Source

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

    public static function store64(SplFixedArray $x, $i, ParagonIE_Sodium_Core32_Int64 $u)
    {
        $v = clone $u;
        $maxLength = $x->getSize() - 1;
        for ($j = 0; $j < 8; ++$j) {
            $k = 3 - ($j >> 1);
            $x[$i] = $v->limbs[$k] & 0xff;
            if (++$i > $maxLength) {
                return;
            }
            $v->limbs[$k] >>= 8;
        }
    }

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.