wppaste
WordPress

ParagonIE_Sodium_Core_Curve25519_Ge_Cached

Source
wp-includes/sodium_compat/src/Core/Curve25519/Ge/Cached.php:10
Class ParagonIE_Sodium_Core_Curve25519_Ge_Cached

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 · 4

$YplusXParagonIE_Sodium_Core_Curve25519_Fepublic
$YminusXParagonIE_Sodium_Core_Curve25519_Fepublic
$ZParagonIE_Sodium_Core_Curve25519_Fepublic
$T2dParagonIE_Sodium_Core_Curve25519_Fepublic

Methods · 1

  • __construct()ParagonIE_Sodium_Core_Curve25519_Ge_Cached constructor.

Source code

class ParagonIE_Sodium_Core_Curve25519_Ge_Cached{    /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $YplusX;     /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $YminusX;     /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $Z;     /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $T2d;     /**     * ParagonIE_Sodium_Core_Curve25519_Ge_Cached constructor.     *     * @internal You should not use this directly from another application     *     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $YplusX     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $YminusX     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $Z     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $T2d     */    public function __construct(        $YplusX = null,        $YminusX = null,        $Z = null,        $T2d = 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 ($Z === null) {            $Z = new ParagonIE_Sodium_Core_Curve25519_Fe();        }        if (!($Z instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {            throw new TypeError('Argument 3 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');        }        $this->Z = $Z;        if ($T2d === null) {            $T2d = new ParagonIE_Sodium_Core_Curve25519_Fe();        }        if (!($T2d instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {            throw new TypeError('Argument 4 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');        }        $this->T2d = $T2d;    }}

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/Cached.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.