diff options
Diffstat (limited to 'crypto/src/asn1/x9/X962Parameters.cs')
-rw-r--r-- | crypto/src/asn1/x9/X962Parameters.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crypto/src/asn1/x9/X962Parameters.cs b/crypto/src/asn1/x9/X962Parameters.cs index af1fce1db..e90472a1b 100644 --- a/crypto/src/asn1/x9/X962Parameters.cs +++ b/crypto/src/asn1/x9/X962Parameters.cs @@ -35,12 +35,13 @@ namespace Org.BouncyCastle.Asn1.X9 throw new ArgumentException("unknown object in GetInstance()"); } - public static X962Parameters GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) - { - return Asn1Utilities.GetInstanceFromChoice(taggedObject, declaredExplicit, GetInstance); - } + public static X962Parameters GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetInstanceChoice(taggedObject, declaredExplicit, GetInstance); - public X962Parameters( + public static X962Parameters GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance); + + public X962Parameters( X9ECParameters ecParameters) { this._params = ecParameters.ToAsn1Object(); |