diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-06-03 20:44:45 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2017-06-03 20:44:45 +0700 |
commit | 9b3549d18ecc3e4f66488568594a626e7d6d8543 (patch) | |
tree | 9504d9265461ab4118bb0708fcd7f0c11ca9d9b6 /crypto/test | |
parent | Fix reductions for custom secp128r1 field (diff) | |
download | BouncyCastle.NET-ed25519-9b3549d18ecc3e4f66488568594a626e7d6d8543.tar.xz |
Initial implementation of SM2 elliptic curve
- includes custom curve code - add lots of OIDs from GM standard
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/test/NamedCurveTest.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/crypto/test/src/test/NamedCurveTest.cs b/crypto/test/src/test/NamedCurveTest.cs index bc8684aa5..2d2758b58 100644 --- a/crypto/test/src/test/NamedCurveTest.cs +++ b/crypto/test/src/test/NamedCurveTest.cs @@ -1,11 +1,10 @@ using System; -using System.Collections; using NUnit.Framework; -using Org.BouncyCastle.Asn1; +using Org.BouncyCastle.Asn1.Anssi; using Org.BouncyCastle.Asn1.CryptoPro; -using Org.BouncyCastle.Asn1.Nist; +using Org.BouncyCastle.Asn1.GM; using Org.BouncyCastle.Asn1.Sec; using Org.BouncyCastle.Asn1.TeleTrust; using Org.BouncyCastle.Asn1.X9; @@ -358,6 +357,16 @@ namespace Org.BouncyCastle.Tests doTestECDsa(name); } + foreach (string name in AnssiNamedCurves.Names) + { + doTestECDsa(name); + } + + foreach (string name in GMNamedCurves.Names) + { + doTestECDsa(name); + } + foreach (string name in ECGost3410NamedCurves.Names) { doTestECGost(name); |