summaryrefslogtreecommitdiffstats
path: root/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge')
-rw-r--r--vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Cached.php65
-rw-r--r--vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php67
-rw-r--r--vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P2.php54
-rw-r--r--vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P3.php65
-rw-r--r--vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Precomp.php56
5 files changed, 307 insertions, 0 deletions
diff --git a/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Cached.php b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Cached.php
new file mode 100644
index 0000000..970481f
--- /dev/null
+++ b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Cached.php
@@ -0,0 +1,65 @@
+<?php
+
+
+if (class_exists('ParagonIE_Sodium_Core32_Curve25519_Ge_Cached', false)) {
+ return;
+}
+/**
+ * Class ParagonIE_Sodium_Core32_Curve25519_Ge_Cached
+ */
+class ParagonIE_Sodium_Core32_Curve25519_Ge_Cached
+{
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $YplusX;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $YminusX;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $Z;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $T2d;
+
+ /**
+ * ParagonIE_Sodium_Core32_Curve25519_Ge_Cached constructor.
+ *
+ * @internal You should not use this directly from another application
+ *
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $YplusX
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $YminusX
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $Z
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $T2d
+ */
+ public function __construct(
+ ParagonIE_Sodium_Core32_Curve25519_Fe $YplusX = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $YminusX = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $Z = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $T2d = null
+ ) {
+ if ($YplusX === null) {
+ $YplusX = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->YplusX = $YplusX;
+ if ($YminusX === null) {
+ $YminusX = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->YminusX = $YminusX;
+ if ($Z === null) {
+ $Z = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->Z = $Z;
+ if ($T2d === null) {
+ $T2d = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->T2d = $T2d;
+ }
+}
diff --git a/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php
new file mode 100644
index 0000000..ff10b1d
--- /dev/null
+++ b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php
@@ -0,0 +1,67 @@
+<?php
+
+if (class_exists('ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1', false)) {
+ return;
+}
+/**
+ * Class ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1
+ */
+class ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1
+{
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $X;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $Y;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $Z;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $T;
+
+ /**
+ * ParagonIE_Sodium_Core32_Curve25519_Ge_P1p1 constructor.
+ *
+ * @internal You should not use this directly from another application
+ *
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $x
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $y
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $z
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $t
+ *
+ * @throws SodiumException
+ * @throws TypeError
+ */
+ public function __construct(
+ ParagonIE_Sodium_Core32_Curve25519_Fe $x = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $y = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $z = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $t = null
+ ) {
+ if ($x === null) {
+ $x = ParagonIE_Sodium_Core32_Curve25519::fe_0();
+ }
+ $this->X = $x;
+ if ($y === null) {
+ $y = ParagonIE_Sodium_Core32_Curve25519::fe_0();
+ }
+ $this->Y = $y;
+ if ($z === null) {
+ $z = ParagonIE_Sodium_Core32_Curve25519::fe_0();
+ }
+ $this->Z = $z;
+ if ($t === null) {
+ $t = ParagonIE_Sodium_Core32_Curve25519::fe_0();
+ }
+ $this->T = $t;
+ }
+}
diff --git a/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P2.php b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P2.php
new file mode 100644
index 0000000..8a45a91
--- /dev/null
+++ b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P2.php
@@ -0,0 +1,54 @@
+<?php
+
+if (class_exists('ParagonIE_Sodium_Core32_Curve25519_Ge_P2', false)) {
+ return;
+}
+
+/**
+ * Class ParagonIE_Sodium_Core32_Curve25519_Ge_P2
+ */
+class ParagonIE_Sodium_Core32_Curve25519_Ge_P2
+{
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $X;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $Y;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $Z;
+
+ /**
+ * ParagonIE_Sodium_Core32_Curve25519_Ge_P2 constructor.
+ *
+ * @internal You should not use this directly from another application
+ *
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $x
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $y
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $z
+ */
+ public function __construct(
+ ParagonIE_Sodium_Core32_Curve25519_Fe $x = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $y = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $z = null
+ ) {
+ if ($x === null) {
+ $x = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->X = $x;
+ if ($y === null) {
+ $y = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->Y = $y;
+ if ($z === null) {
+ $z = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->Z = $z;
+ }
+}
diff --git a/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P3.php b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P3.php
new file mode 100644
index 0000000..c9e4b16
--- /dev/null
+++ b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P3.php
@@ -0,0 +1,65 @@
+<?php
+
+if (class_exists('ParagonIE_Sodium_Core32_Curve25519_Ge_P3', false)) {
+ return;
+}
+
+/**
+ * Class ParagonIE_Sodium_Core32_Curve25519_Ge_P3
+ */
+class ParagonIE_Sodium_Core32_Curve25519_Ge_P3
+{
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $X;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $Y;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $Z;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $T;
+
+ /**
+ * ParagonIE_Sodium_Core32_Curve25519_Ge_P3 constructor.
+ *
+ * @internal You should not use this directly from another application
+ *
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $x
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $y
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $z
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe|null $t
+ */
+ public function __construct(
+ ParagonIE_Sodium_Core32_Curve25519_Fe $x = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $y = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $z = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $t = null
+ ) {
+ if ($x === null) {
+ $x = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->X = $x;
+ if ($y === null) {
+ $y = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->Y = $y;
+ if ($z === null) {
+ $z = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->Z = $z;
+ if ($t === null) {
+ $t = new ParagonIE_Sodium_Core32_Curve25519_Fe();
+ }
+ $this->T = $t;
+ }
+}
diff --git a/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Precomp.php b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Precomp.php
new file mode 100644
index 0000000..b590b75
--- /dev/null
+++ b/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Precomp.php
@@ -0,0 +1,56 @@
+<?php
+
+if (class_exists('ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp', false)) {
+ return;
+}
+
+/**
+ * Class ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp
+ */
+class ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp
+{
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $yplusx;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $yminusx;
+
+ /**
+ * @var ParagonIE_Sodium_Core32_Curve25519_Fe
+ */
+ public $xy2d;
+
+ /**
+ * ParagonIE_Sodium_Core32_Curve25519_Ge_Precomp constructor.
+ *
+ * @internal You should not use this directly from another application
+ *
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe $yplusx
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe $yminusx
+ * @param ParagonIE_Sodium_Core32_Curve25519_Fe $xy2d
+ * @throws SodiumException
+ * @throws TypeError
+ */
+ public function __construct(
+ ParagonIE_Sodium_Core32_Curve25519_Fe $yplusx = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $yminusx = null,
+ ParagonIE_Sodium_Core32_Curve25519_Fe $xy2d = null
+ ) {
+ if ($yplusx === null) {
+ $yplusx = ParagonIE_Sodium_Core32_Curve25519::fe_0();
+ }
+ $this->yplusx = $yplusx;
+ if ($yminusx === null) {
+ $yminusx = ParagonIE_Sodium_Core32_Curve25519::fe_0();
+ }
+ $this->yminusx = $yminusx;
+ if ($xy2d === null) {
+ $xy2d = ParagonIE_Sodium_Core32_Curve25519::fe_0();
+ }
+ $this->xy2d = $xy2d;
+ }
+}