diff options
Diffstat (limited to 'crypto/src/math/ec/custom/sec/SecT283R1Point.cs')
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecT283R1Point.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecT283R1Point.cs b/crypto/src/math/ec/custom/sec/SecT283R1Point.cs index 340bbdae6..4c1a7801d 100644 --- a/crypto/src/math/ec/custom/sec/SecT283R1Point.cs +++ b/crypto/src/math/ec/custom/sec/SecT283R1Point.cs @@ -131,7 +131,6 @@ 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).AddOne(); if (X3.IsZero) { @@ -237,10 +236,7 @@ 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 = Z1Sq.Add(L1Sq).Add(L1Z1); - ECFieldElement L2plus1 = L2.AddOne(); - //ECFieldElement A = curve.A.Add(L2plus1).Multiply(Z1Sq).Add(L1Sq).MultiplyPlusProduct(T, X1Sq, Z1Sq); ECFieldElement A = L2.Multiply(Z1Sq).Add(L1Sq).MultiplyPlusProduct(T, X1Sq, Z1Sq); ECFieldElement X2Z1Sq = X2.Multiply(Z1Sq); ECFieldElement B = X2Z1Sq.Add(T).Square(); @@ -260,7 +256,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec ECFieldElement X3 = A.Square().Multiply(X2Z1Sq); ECFieldElement Z3 = A.Multiply(B).Multiply(Z1Sq); - ECFieldElement L3 = A.Add(B).Square().MultiplyPlusProduct(T, L2plus1, Z3); + ECFieldElement L3 = A.Add(B).Square().MultiplyPlusProduct(T, L2.AddOne(), Z3); return new SecT283R1Point(curve, X3, L3, new ECFieldElement[] { Z3 }, IsCompressed); } |