summaryrefslogtreecommitdiffstats
path: root/vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Precomp.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/Precomp.php56
1 files changed, 56 insertions, 0 deletions
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;
+ }
+}