summary refs log tree commit diff
path: root/crypto/src/asn1/x9
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2020-07-17 22:07:12 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2020-07-17 22:07:12 +0700
commit2db28a5b63aadd34fb3ef350d69eb4db4e4580b4 (patch)
tree119f0a21af644d1e5e2e2ba9ab4658f2fd69dcaf /crypto/src/asn1/x9
parentSpelling (diff)
downloadBouncyCastle.NET-ed25519-2db28a5b63aadd34fb3ef350d69eb4db4e4580b4.tar.xz
Straighten out ECGOST3410NamedCurves
- deprecate/replace methods returning ECDomainParameters
Diffstat (limited to 'crypto/src/asn1/x9')
-rw-r--r--crypto/src/asn1/x9/ECNamedCurveTable.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/crypto/src/asn1/x9/ECNamedCurveTable.cs b/crypto/src/asn1/x9/ECNamedCurveTable.cs
index f91bded18..fcd2810e7 100644
--- a/crypto/src/asn1/x9/ECNamedCurveTable.cs
+++ b/crypto/src/asn1/x9/ECNamedCurveTable.cs
@@ -7,7 +7,6 @@ using Org.BouncyCastle.Asn1.GM;
 using Org.BouncyCastle.Asn1.Nist;
 using Org.BouncyCastle.Asn1.Sec;
 using Org.BouncyCastle.Asn1.TeleTrust;
-using Org.BouncyCastle.Crypto.Parameters;
 using Org.BouncyCastle.Utilities;
 using Org.BouncyCastle.Utilities.Collections;
 
@@ -46,7 +45,7 @@ namespace Org.BouncyCastle.Asn1.X9
             }
             if (ecP == null)
             {
-                ecP = FromDomainParameters(ECGost3410NamedCurves.GetByName(name));
+                ecP = ECGost3410NamedCurves.GetByNameX9(name);
             }
             if (ecP == null)
             {
@@ -148,7 +147,7 @@ namespace Org.BouncyCastle.Asn1.X9
             }
             if (ecP == null)
             {
-                ecP = FromDomainParameters(ECGost3410NamedCurves.GetByOid(oid));
+                ecP = ECGost3410NamedCurves.GetByOidX9(oid);
             }
             if (ecP == null)
             {
@@ -177,10 +176,5 @@ namespace Org.BouncyCastle.Asn1.X9
                 return v;
             }
         }
-
-        private static X9ECParameters FromDomainParameters(ECDomainParameters dp)
-        {
-            return dp == null ? null : new X9ECParameters(dp.Curve, dp.G, dp.N, dp.H, dp.GetSeed());
-        }
     }
 }