ParagonIE_Sodium_Core_BLAKE2b::add64

Advertisement

Summery Summery

Adds two 64-bit integers together, returning their sum as a SplFixedArray containing two 32-bit integers (representing a 64-bit integer).

Syntax Syntax

ParagonIE_Sodium_Core_BLAKE2b::add64( SplFixedArray $x, SplFixedArray $y )

Parameters Parameters

$x

(Required)

$y

(Required)

Return Return

(SplFixedArray)

Source Source

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

    protected static function add64($x, $y)
    {
        $l = ($x[1] + $y[1]) & 0xffffffff;
        return self::new64(
            (int) ($x[0] + $y[0] + (
                ($l < $x[1]) ? 1 : 0
            )),
            (int) $l
        );
    }

Advertisement

Advertisement

Leave a Reply