summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-03-24 13:17:46 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-03-24 13:17:46 +0700
commit4c411105f946de856727eb32a03586293d18a2b3 (patch)
tree429fb7427e300ffeea954c734f03f62712bde515 /crypto
parentF2m changes in preparation for custom binary curves (diff)
downloadBouncyCastle.NET-ed25519-4c411105f946de856727eb32a03586293d18a2b3.tar.xz
Only test each named curve once
Diffstat (limited to 'crypto')
-rw-r--r--crypto/test/src/math/ec/test/ECPointTest.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/test/src/math/ec/test/ECPointTest.cs b/crypto/test/src/math/ec/test/ECPointTest.cs
index 8430f437d..2a62b7740 100644
--- a/crypto/test/src/math/ec/test/ECPointTest.cs
+++ b/crypto/test/src/math/ec/test/ECPointTest.cs
@@ -483,7 +483,9 @@ namespace Org.BouncyCastle.Math.EC.Tests
             CollectionUtilities.AddRange(names, ECNamedCurveTable.Names);
             CollectionUtilities.AddRange(names, CustomNamedCurves.Names);
 
-            foreach (string name in names)
+            ISet uniqNames = new HashSet(names);
+
+            foreach (string name in uniqNames)
             {
                 X9ECParameters x9ECParameters = ECNamedCurveTable.GetByName(name);
                 if (x9ECParameters != null)