From 36d2092a81f9ab91593bc4ccb16ba496465577ac Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 11 Aug 2024 11:02:56 -0500 Subject: [PATCH] BigInteger/BCMath engine's bitwise_or() was doing XOR --- phpseclib/Math/BigInteger/Engines/BCMath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Math/BigInteger/Engines/BCMath.php b/phpseclib/Math/BigInteger/Engines/BCMath.php index 7c5ca9fb..e3a49906 100644 --- a/phpseclib/Math/BigInteger/Engines/BCMath.php +++ b/phpseclib/Math/BigInteger/Engines/BCMath.php @@ -336,7 +336,7 @@ class BCMath extends Engine */ public function bitwise_or(BCMath $x) { - return $this->bitwiseXorHelper($x); + return $this->bitwiseOrHelper($x); } /**