wppaste
WordPress

ParagonIE_Sodium_Core_Curve25519_Ge_Precomp

Source
wp-includes/sodium_compat/src/Core/Curve25519/Ge/Precomp.php:10
Class ParagonIE_Sodium_Core_Curve25519_Ge_Precomp

Compatibility

WordPress
core
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Properties · 3

$yplusxParagonIE_Sodium_Core_Curve25519_Fepublic
$yminusxParagonIE_Sodium_Core_Curve25519_Fepublic
$xy2dParagonIE_Sodium_Core_Curve25519_Fepublic

Methods · 1

  • __construct()ParagonIE_Sodium_Core_Curve25519_Ge_Precomp constructor.

Source code

class ParagonIE_Sodium_Core_Curve25519_Ge_Precomp{    /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $yplusx;     /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $yminusx;     /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $xy2d;     /**     * ParagonIE_Sodium_Core_Curve25519_Ge_Precomp constructor.     *     * @internal You should not use this directly from another application     *     * @param ParagonIE_Sodium_Core_Curve25519_Fe $yplusx     * @param ParagonIE_Sodium_Core_Curve25519_Fe $yminusx     * @param ParagonIE_Sodium_Core_Curve25519_Fe $xy2d     */    public function __construct(        $yplusx = null,        $yminusx = null,        $xy2d = null    ) {        if ($yplusx === null) {            $yplusx = new ParagonIE_Sodium_Core_Curve25519_Fe();        }        if (!($yplusx instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {            throw new TypeError('Argument 1 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');        }        $this->yplusx = $yplusx;        if ($yminusx === null) {            $yminusx = new ParagonIE_Sodium_Core_Curve25519_Fe();        }        if (!($yminusx instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {            throw new TypeError('Argument 2 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');        }        $this->yminusx = $yminusx;        if ($xy2d === null) {            $xy2d = new ParagonIE_Sodium_Core_Curve25519_Fe();        }        if (!($xy2d instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {            throw new TypeError('Argument 3 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');        }        $this->xy2d = $xy2d;    }}

Changelog

Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Precomp.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.