diff options
Diffstat (limited to 'wp-includes/sodium_compat/src/Core/Curve25519/Ge')
5 files changed, 302 insertions, 0 deletions
diff --git a/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Cached.php b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Cached.php new file mode 100644 index 0000000..39bf897 --- /dev/null +++ b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Cached.php @@ -0,0 +1,65 @@ +<?php + + +if (class_exists('ParagonIE_Sodium_Core_Curve25519_Ge_Cached', false)) { + return; +} +/** + * Class ParagonIE_Sodium_Core_Curve25519_Ge_Cached + */ +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( + 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; + } +} diff --git a/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P1p1.php b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P1p1.php new file mode 100644 index 0000000..a63d6ab --- /dev/null +++ b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P1p1.php @@ -0,0 +1,64 @@ +<?php + +if (class_exists('ParagonIE_Sodium_Core_Curve25519_Ge_P1p1', false)) { + return; +} +/** + * Class ParagonIE_Sodium_Core_Curve25519_Ge_P1p1 + */ +class ParagonIE_Sodium_Core_Curve25519_Ge_P1p1 +{ + /** + * @var ParagonIE_Sodium_Core_Curve25519_Fe + */ + public $X; + + /** + * @var ParagonIE_Sodium_Core_Curve25519_Fe + */ + public $Y; + + /** + * @var ParagonIE_Sodium_Core_Curve25519_Fe + */ + public $Z; + + /** + * @var ParagonIE_Sodium_Core_Curve25519_Fe + */ + public $T; + + /** + * ParagonIE_Sodium_Core_Curve25519_Ge_P1p1 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 + * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $t + */ + public function __construct( + ParagonIE_Sodium_Core_Curve25519_Fe $x = null, + ParagonIE_Sodium_Core_Curve25519_Fe $y = null, + ParagonIE_Sodium_Core_Curve25519_Fe $z = null, + ParagonIE_Sodium_Core_Curve25519_Fe $t = null + ) { + if ($x === null) { + $x = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->X = $x; + if ($y === null) { + $y = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->Y = $y; + if ($z === null) { + $z = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->Z = $z; + if ($t === null) { + $t = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->T = $t; + } +} diff --git a/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P2.php b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P2.php new file mode 100644 index 0000000..aee4000 --- /dev/null +++ b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P2.php @@ -0,0 +1,54 @@ +<?php + +if (class_exists('ParagonIE_Sodium_Core_Curve25519_Ge_P2', false)) { + return; +} + +/** + * Class ParagonIE_Sodium_Core_Curve25519_Ge_P2 + */ +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( + ParagonIE_Sodium_Core_Curve25519_Fe $x = null, + ParagonIE_Sodium_Core_Curve25519_Fe $y = null, + ParagonIE_Sodium_Core_Curve25519_Fe $z = null + ) { + if ($x === null) { + $x = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->X = $x; + if ($y === null) { + $y = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->Y = $y; + if ($z === null) { + $z = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->Z = $z; + } +} diff --git a/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P3.php b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P3.php new file mode 100644 index 0000000..00f5b27 --- /dev/null +++ b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/P3.php @@ -0,0 +1,65 @@ +<?php + +if (class_exists('ParagonIE_Sodium_Core_Curve25519_Ge_P3', false)) { + return; +} + +/** + * Class ParagonIE_Sodium_Core_Curve25519_Ge_P3 + */ +class ParagonIE_Sodium_Core_Curve25519_Ge_P3 +{ + /** + * @var ParagonIE_Sodium_Core_Curve25519_Fe + */ + public $X; + + /** + * @var ParagonIE_Sodium_Core_Curve25519_Fe + */ + public $Y; + + /** + * @var ParagonIE_Sodium_Core_Curve25519_Fe + */ + public $Z; + + /** + * @var ParagonIE_Sodium_Core_Curve25519_Fe + */ + public $T; + + /** + * ParagonIE_Sodium_Core_Curve25519_Ge_P3 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 + * @param ParagonIE_Sodium_Core_Curve25519_Fe|null $t + */ + public function __construct( + ParagonIE_Sodium_Core_Curve25519_Fe $x = null, + ParagonIE_Sodium_Core_Curve25519_Fe $y = null, + ParagonIE_Sodium_Core_Curve25519_Fe $z = null, + ParagonIE_Sodium_Core_Curve25519_Fe $t = null + ) { + if ($x === null) { + $x = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->X = $x; + if ($y === null) { + $y = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->Y = $y; + if ($z === null) { + $z = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->Z = $z; + if ($t === null) { + $t = new ParagonIE_Sodium_Core_Curve25519_Fe(); + } + $this->T = $t; + } +} diff --git a/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Precomp.php b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Precomp.php new file mode 100644 index 0000000..59611c1 --- /dev/null +++ b/wp-includes/sodium_compat/src/Core/Curve25519/Ge/Precomp.php @@ -0,0 +1,54 @@ +<?php + +if (class_exists('ParagonIE_Sodium_Core_Curve25519_Ge_Precomp', false)) { + return; +} + +/** + * Class ParagonIE_Sodium_Core_Curve25519_Ge_Precomp + */ +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( + 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; + } +} |