summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-01-24 19:18:21 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-01-24 19:18:21 +0700
commit6b5b1051ee235bd75b34e81ebb9e08a88fe5cede (patch)
tree739b56eac85317cf26866dceddbc3f40b20c0e6a /crypto/test
parentSome more EC point normalization (diff)
downloadBouncyCastle.NET-ed25519-6b5b1051ee235bd75b34e81ebb9e08a88fe5cede.tar.xz
Formatting
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/math/ec/test/ECPointPerformanceTest.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs b/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs
index f9e89eccf..a077d1f92 100644
--- a/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs
+++ b/crypto/test/src/math/ec/test/ECPointPerformanceTest.cs
@@ -135,15 +135,11 @@ namespace Org.BouncyCastle.Math.EC.Tests
             ISet oids = new HashSet();
             foreach (string name in names)
             {
-                //if (name.StartsWith("P-"))
-                //if (name.Equals("secp256r1"))
+                DerObjectIdentifier oid = ECNamedCurveTable.GetOid(name);
+                if (!oids.Contains(oid))
                 {
-                    DerObjectIdentifier oid = ECNamedCurveTable.GetOid(name);
-                    if (!oids.Contains(oid))
-                    {
-                        oids.Add(oid);
-                        RandMult(name);
-                    }
+                    oids.Add(oid);
+                    RandMult(name);
                 }
             }
         }