summary refs log tree commit diff
path: root/crypto/src/math/ec/rfc8032/Ed25519.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/rfc8032/Ed25519.cs')
-rw-r--r--crypto/src/math/ec/rfc8032/Ed25519.cs12
1 files changed, 1 insertions, 11 deletions
diff --git a/crypto/src/math/ec/rfc8032/Ed25519.cs b/crypto/src/math/ec/rfc8032/Ed25519.cs
index d5b035734..fd2d5fe93 100644
--- a/crypto/src/math/ec/rfc8032/Ed25519.cs
+++ b/crypto/src/math/ec/rfc8032/Ed25519.cs
@@ -935,16 +935,6 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032
             F.Copy(u, 0, points[0].z, 0);
         }
 
-        //private static bool IsNeutralElementVar(int[] x, int[] y)
-        //{
-        //    return F.IsZeroVar(x) && F.IsOneVar(y);
-        //}
-
-        private static bool IsNeutralElementVar(int[] x, int[] y, int[] z)
-        {
-            return F.IsZeroVar(x) && F.AreEqualVar(y, z);
-        }
-
         private static void NormalizeToAffine(ref PointAccum p, ref PointAffine r)
         {
             F.Inv(p.z, r.y);
@@ -960,7 +950,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032
             F.Normalize(p.y);
             F.Normalize(p.z);
 
-            return IsNeutralElementVar(p.x, p.y, p.z);
+            return F.IsZeroVar(p.x) && F.AreEqualVar(p.y, p.z);
         }
 
         private static void PointAdd(ref PointExtended p, ref PointExtended q, ref PointExtended r, ref PointTemp t)