diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-03-24 13:17:46 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-03-24 13:17:46 +0700 |
commit | 4c411105f946de856727eb32a03586293d18a2b3 (patch) | |
tree | 429fb7427e300ffeea954c734f03f62712bde515 /crypto/test | |
parent | F2m changes in preparation for custom binary curves (diff) | |
download | BouncyCastle.NET-ed25519-4c411105f946de856727eb32a03586293d18a2b3.tar.xz |
Only test each named curve once
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/math/ec/test/ECPointTest.cs | 4 |
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) |