ParagonIE_Sodium_Core32_Int64::xorInt64

Advertisement

Summery Summery

XOR this 64-bit integer with another.

Syntax Syntax

ParagonIE_Sodium_Core32_Int64::xorInt64( ParagonIE_Sodium_Core32_Int64 $b )

Parameters Parameters

$b

(ParagonIE_Sodium_Core32_Int64) (Required)

Return Return

(ParagonIE_Sodium_Core32_Int64)

Source Source

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

    public function xorInt64(ParagonIE_Sodium_Core32_Int64 $b)
    {
        $return = new ParagonIE_Sodium_Core32_Int64();
        $return->unsignedInt = $this->unsignedInt;
        $return->limbs = array(
            (int) ($this->limbs[0] ^ $b->limbs[0]),
            (int) ($this->limbs[1] ^ $b->limbs[1]),
            (int) ($this->limbs[2] ^ $b->limbs[2]),
            (int) ($this->limbs[3] ^ $b->limbs[3])
        );
        return $return;
    }

Advertisement

Advertisement

Leave a Reply

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