diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-12-05 20:43:16 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-12-05 20:43:16 +0700 |
commit | 8848f0ca592998b66ebf4ffc03a0d6d38f287366 (patch) | |
tree | 454a8b814426092686dd3f7dd70d19c269c3c4e7 | |
parent | Add ECFieldElement.GetEncoded() method (diff) | |
download | BouncyCastle.NET-ed25519-8848f0ca592998b66ebf4ffc03a0d6d38f287366.tar.xz |
Use Negate() to simplify
-rw-r--r-- | crypto/src/math/ec/ECCurve.cs | 2 |
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); |