wppaste
WordPress

ParagonIE_Sodium_Core_Curve25519_Ge_P2

Source
wp-includes/sodium_compat/src/Core/Curve25519/Ge/P2.php:10
Class ParagonIE_Sodium_Core_Curve25519_Ge_P2

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

$XParagonIE_Sodium_Core_Curve25519_Fepublic
$YParagonIE_Sodium_Core_Curve25519_Fepublic
$ZParagonIE_Sodium_Core_Curve25519_Fepublic

Methods · 1

Source code

class ParagonIE_Sodium_Core_Curve25519_Ge_P2{    /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $X;     /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $Y;     /**     * @var ParagonIE_Sodium_Core_Curve25519_Fe     */    public $Z;     /**     * ParagonIE_Sodium_Core_Curve25519_Ge_P2 constructor.     *     * @internal You should not use this directly from another application     *     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $x     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $y     * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $z     */    public function __construct(        $x = null,        $y = null,        $z = null    ) {        if ($x === null) {            $x = new ParagonIE_Sodium_Core_Curve25519_Fe();        }        if (!($x instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {            throw new TypeError('Argument 1 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');        }        $this->X = $x;        if ($y === null) {            $y = new ParagonIE_Sodium_Core_Curve25519_Fe();        }        if (!($y instanceof ParagonIE_Sodium_Core_Curve25519_Fe)) {            throw new TypeError('Argument 2 must be an instance of ParagonIE_Sodium_Core_Curve25519_Fe');        }        $this->Y = $y;        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;    }}

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