ParagonIE_Sodium_Core_Curve25519_Ge_Cached::__construct

Advertisement

Summery Summery

ParagonIE_Sodium_Core_Curve25519_Ge_Cached constructor.

Syntax Syntax

ParagonIE_Sodium_Core_Curve25519_Ge_Cached::__construct( ParagonIE_Sodium_Core_Curve25519_Fe|null $YplusX = null, ParagonIE_Sodium_Core_Curve25519_Fe|null $YminusX = null, ParagonIE_Sodium_Core_Curve25519_Fe|null $Z = null, ParagonIE_Sodium_Core_Curve25519_Fe|null $T2d = null )

Parameters Parameters

$YplusX

(Optional)

Default value: null

$YminusX

(Optional)

Default value: null

$Z

(Optional)

Default value: null

$T2d

(Optional)

Default value: null

Source Source

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

    public function __construct(
        ParagonIE_Sodium_Core_Curve25519_Fe $YplusX = null,
        ParagonIE_Sodium_Core_Curve25519_Fe $YminusX = null,
        ParagonIE_Sodium_Core_Curve25519_Fe $Z = null,
        ParagonIE_Sodium_Core_Curve25519_Fe $T2d = null
    ) {
        if ($YplusX === null) {
            $YplusX = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        $this->YplusX = $YplusX;
        if ($YminusX === null) {
            $YminusX = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        $this->YminusX = $YminusX;
        if ($Z === null) {
            $Z = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        $this->Z = $Z;
        if ($T2d === null) {
            $T2d = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        $this->T2d = $T2d;
    }

Advertisement

Advertisement

Leave a Reply