ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1::__construct

Advertisement

Summery Summery

ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 constructor.

Syntax Syntax

ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1::__construct( ParagonIE_Sodium_Core32_Curve25519_Fe|null $x = null, ParagonIE_Sodium_Core32_Curve25519_Fe|null $y = null, ParagonIE_Sodium_Core32_Curve25519_Fe|null $z = null, ParagonIE_Sodium_Core32_Curve25519_Fe|null $t = null )

Parameters Parameters

$x

(Optional)

Default value: null

$y

(Optional)

Default value: null

$z

(Optional)

Default value: null

$t

(Optional)

Default value: null

Source Source

File: wp-includes/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php

    public function __construct(
        ParagonIE_Sodium_Core32_Curve25519_Fe $x = null,
        ParagonIE_Sodium_Core32_Curve25519_Fe $y = null,
        ParagonIE_Sodium_Core32_Curve25519_Fe $z = null,
        ParagonIE_Sodium_Core32_Curve25519_Fe $t = null
    ) {
        if ($x === null) {
            $x = ParagonIE_Sodium_Core32_Curve25519::fe_0();
        }
        $this->X = $x;
        if ($y === null) {
            $y = ParagonIE_Sodium_Core32_Curve25519::fe_0();
        }
        $this->Y = $y;
        if ($z === null) {
            $z = ParagonIE_Sodium_Core32_Curve25519::fe_0();
        }
        $this->Z = $z;
        if ($t === null) {
            $t = ParagonIE_Sodium_Core32_Curve25519::fe_0();
        }
        $this->T = $t;
    }

Advertisement

Advertisement

Leave a Reply