ParagonIE_Sodium_Core_Curve25519_Ge_Precomp::__construct

Advertisement

Summery Summery

ParagonIE_Sodium_Core_Curve25519_Ge_Precomp constructor.

Syntax Syntax

ParagonIE_Sodium_Core_Curve25519_Ge_Precomp::__construct( ParagonIE_Sodium_Core_Curve25519_Fe $yplusx = null, ParagonIE_Sodium_Core_Curve25519_Fe $yminusx = null, ParagonIE_Sodium_Core_Curve25519_Fe $xy2d = null )

Parameters Parameters

$yplusx

(ParagonIE_Sodium_Core_Curve25519_Fe) (Optional)

Default value: null

$yminusx

(ParagonIE_Sodium_Core_Curve25519_Fe) (Optional)

Default value: null

$xy2d

(ParagonIE_Sodium_Core_Curve25519_Fe) (Optional)

Default value: null

Source Source

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

    public function __construct(
        ParagonIE_Sodium_Core_Curve25519_Fe $yplusx = null,
        ParagonIE_Sodium_Core_Curve25519_Fe $yminusx = null,
        ParagonIE_Sodium_Core_Curve25519_Fe $xy2d = 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 ($xy2d === null) {
            $xy2d = new ParagonIE_Sodium_Core_Curve25519_Fe();
        }
        $this->xy2d = $xy2d;
    }

Advertisement

Advertisement

Leave a Reply

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