ParagonIE_Sodium_Core32_Int32::xorInt32

Advertisement

Summery Summery

XOR this 32-bit integer with another.

Syntax Syntax

ParagonIE_Sodium_Core32_Int32::xorInt32( ParagonIE_Sodium_Core32_Int32 $b )

Parameters Parameters

$b

(ParagonIE_Sodium_Core32_Int32) (Required)

Return Return

(ParagonIE_Sodium_Core32_Int32)

Source Source

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

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

Advertisement

Advertisement

Leave a Reply

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