From 0efd3176d8b449bf61547e8f479379039c08531d Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 4 Dec 2024 14:44:28 -0600 Subject: [PATCH] EC/BaseCurves/Montgomery: fix needless conversion in multiplyPoint --- phpseclib/Crypt/EC/BaseCurves/Montgomery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/EC/BaseCurves/Montgomery.php b/phpseclib/Crypt/EC/BaseCurves/Montgomery.php index bf02569dc..b792e161d 100644 --- a/phpseclib/Crypt/EC/BaseCurves/Montgomery.php +++ b/phpseclib/Crypt/EC/BaseCurves/Montgomery.php @@ -219,7 +219,7 @@ private function doubleAndAddPoint(array $p, array $q, PrimeInteger $x1) public function multiplyPoint(array $p, BigInteger $d) { $p1 = [$this->one, $this->zero]; - $alreadyInternal = isset($x[1]); + $alreadyInternal = isset($p[1]); $p2 = $this->convertToInternal($p); $x = $p[0];