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

(SplFixedArray) (Required)

$y

(SplFixedArray) (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

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