ParagonIE_Sodium_Core_Curve25519_Ge_P2::__construct

Advertisement

Summery Summery

ParagonIE_Sodium_Core_Curve25519_Ge_P2 constructor.

Syntax Syntax

ParagonIE_Sodium_Core_Curve25519_Ge_P2::__construct( ParagonIE_Sodium_Core_Curve25519_Fe|null $x = null, ParagonIE_Sodium_Core_Curve25519_Fe|null $y = null, ParagonIE_Sodium_Core_Curve25519_Fe|null $z = null )

Parameters Parameters

$x

(ParagonIE_Sodium_Core_Curve25519_Fe|null) (Optional)

Default value: null

$y

(ParagonIE_Sodium_Core_Curve25519_Fe|null) (Optional)

Default value: null

$z

(ParagonIE_Sodium_Core_Curve25519_Fe|null) (Optional)

Default value: null

Source Source

File: wp-includes/sodium_compat/src/Core/Curve25519/Ge/P2.php

    public function __construct(
        ParagonIE_Sodium_Core_Curve25519_Fe $x = null,
        ParagonIE_Sodium_Core_Curve25519_Fe $y = null,
        ParagonIE_Sodium_Core_Curve25519_Fe $z = null
    ) {
        if ($x === null) {
            $x = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        $this->X = $x;
        if ($y === null) {
            $y = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        $this->Y = $y;
        if ($z === null) {
            $z = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        $this->Z = $z;
    }

Advertisement

Advertisement

Leave a Reply

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