From 8848f0ca592998b66ebf4ffc03a0d6d38f287366 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 5 Dec 2013 20:43:16 +0700 Subject: Use Negate() to simplify --- crypto/src/math/ec/ECCurve.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/math/ec') 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); -- cgit 1.4.1