summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-12-05 20:43:16 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-12-05 20:43:16 +0700
commit8848f0ca592998b66ebf4ffc03a0d6d38f287366 (patch)
tree454a8b814426092686dd3f7dd70d19c269c3c4e7
parentAdd ECFieldElement.GetEncoded() method (diff)
downloadBouncyCastle.NET-ed25519-8848f0ca592998b66ebf4ffc03a0d6d38f287366.tar.xz
Use Negate() to simplify
-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);