diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
commit | 19985dbb8c0aa66dc4bf7905abc1148de909097d (patch) | |
tree | 2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php | |
download | 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip |
Diffstat (limited to 'vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php')
-rw-r--r-- | vendor/paragonie/sodium_compat/src/Core32/Curve25519/Ge/P1p1.php | 67 |
1 files changed, 67 insertions, 0 deletions
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; + } +} |