summary refs log tree commit diff
path: root/crypto/src/math/ec/custom/sec
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2017-02-17 17:54:09 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2017-02-17 17:54:09 +0700
commit857bd45eddfc7d3345efb4a037176fc642e76624 (patch)
treee49aa5f72c71f60f282768195d1d85faa33b01cb /crypto/src/math/ec/custom/sec
parentClean up old comments in binary custom curve code (diff)
downloadBouncyCastle.NET-ed25519-857bd45eddfc7d3345efb4a037176fc642e76624.tar.xz
Fix bug in SecT571KPoint.Add with order-2 points (lambda-projective).
- shouldn't affect crypto operations in the group
Diffstat (limited to 'crypto/src/math/ec/custom/sec')
-rw-r--r--crypto/src/math/ec/custom/sec/SecT571K1Point.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT571K1Point.cs b/crypto/src/math/ec/custom/sec/SecT571K1Point.cs
index f92370f87..deaaf0c74 100644
--- a/crypto/src/math/ec/custom/sec/SecT571K1Point.cs
+++ b/crypto/src/math/ec/custom/sec/SecT571K1Point.cs
@@ -131,7 +131,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
                 ECFieldElement Y2 = L2;
                 ECFieldElement L = Y1.Add(Y2).Divide(X1);
 
-                X3 = L.Square().Add(L).Add(X1).AddOne();
+                X3 = L.Square().Add(L).Add(X1);
                 if (X3.IsZero)
                 {
                     return new SecT571K1Point(curve, X3, curve.B, IsCompressed);