diff options
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecT233K1Point.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecT233K1Point.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT233K1Point.cs b/crypto/src/math/ec/custom/sec/SecT233K1Point.cs index 7e7ee8f0b..9a357ff8f 100644 --- a/crypto/src/math/ec/custom/sec/SecT233K1Point.cs +++ b/crypto/src/math/ec/custom/sec/SecT233K1Point.cs @@ -133,11 +133,9 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec ECFieldElement Y2 = L2; ECFieldElement L = Y1.Add(Y2).Divide(X1); - //X3 = L.Square().Add(L).Add(X1).Add(curve.A); X3 = L.Square().Add(L).Add(X1); if (X3.IsZero) { - //return new SecT233K1Point(curve, X3, curve.B.sqrt(), IsCompressed); return new SecT233K1Point(curve, X3, curve.B, IsCompressed); } @@ -155,7 +153,6 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec X3 = AU1.Multiply(AU2); if (X3.IsZero) { - //return new SecT233K1Point(curve, X3, curve.B.sqrt(), IsCompressed); return new SecT233K1Point(curve, X3, curve.B, IsCompressed); } @@ -209,7 +206,6 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec if (T.IsZero) { - //return new SecT233K1Point(curve, T, curve.B.sqrt(), withCompression); return new SecT233K1Point(curve, T, curve.B, IsCompressed); } @@ -254,10 +250,8 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec ECFieldElement Z1Sq = Z1.Square(); ECFieldElement L1Z1 = L1.Multiply(Z1); - //ECFieldElement T = curve.A.Multiply(Z1Sq).Add(L1Sq).Add(L1Z1); ECFieldElement T = L1Sq.Add(L1Z1); ECFieldElement L2plus1 = L2.AddOne(); - //ECFieldElement A = curve.A.Add(L2plus1).Multiply(Z1Sq).Add(L1Sq).MultiplyPlusProduct(T, X1Sq, Z1Sq); ECFieldElement A = L2plus1.Multiply(Z1Sq).Add(L1Sq).MultiplyPlusProduct(T, X1Sq, Z1Sq); ECFieldElement X2Z1Sq = X2.Multiply(Z1Sq); ECFieldElement B = X2Z1Sq.Add(T).Square(); @@ -274,7 +268,6 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec if (A.IsZero) { - //return new SecT233K1Point(curve, A, curve.B.sqrt(), withCompression); return new SecT233K1Point(curve, A, curve.B, IsCompressed); } |