summary refs log tree commit diff
path: root/crypto/src/math/ec/rfc8032/Ed448.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/math/ec/rfc8032/Ed448.cs')
-rw-r--r--crypto/src/math/ec/rfc8032/Ed448.cs12
1 files changed, 1 insertions, 11 deletions
diff --git a/crypto/src/math/ec/rfc8032/Ed448.cs b/crypto/src/math/ec/rfc8032/Ed448.cs
index 22fe79960..08b64ddf2 100644
--- a/crypto/src/math/ec/rfc8032/Ed448.cs
+++ b/crypto/src/math/ec/rfc8032/Ed448.cs
@@ -853,16 +853,6 @@ namespace Org.BouncyCastle.Math.EC.Rfc8032
             F.Copy(u, 0, points[0].z, 0);
         }
 
-        //private static bool IsNeutralElementVar(uint[] x, uint[] y)
-        //{
-        //    return F.IsZeroVar(x) && F.IsOneVar(y);
-        //}
-
-        private static bool IsNeutralElementVar(uint[] x, uint[] y, uint[] z)
-        {
-            return F.IsZeroVar(x) && F.AreEqualVar(y, z);
-        }
-
         private static void NormalizeToAffine(ref PointProjective p, ref PointAffine r)
         {
             F.Inv(p.z, r.y);
@@ -878,7 +868,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 PointAffine p, ref PointProjective r, ref PointTemp t)