summary refs log tree commit diff
path: root/crypto/src/math/ec
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec')
-rw-r--r--crypto/src/math/ec/ECCurve.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/ECCurve.cs b/crypto/src/math/ec/ECCurve.cs
index 396d42f28..67c6097c0 100644
--- a/crypto/src/math/ec/ECCurve.cs
+++ b/crypto/src/math/ec/ECCurve.cs
@@ -179,7 +179,7 @@ namespace Org.BouncyCastle.Math.EC
             if (bit0 != yTilde)
             {
                 // Use the other root
-                beta = FromBigInteger(q.Subtract(betaValue));
+                beta = beta.Negate();
             }
 
             return new FpPoint(this, x, beta, true);