diff options
Diffstat (limited to 'crypto/src/asn1/x9/X962Parameters.cs')
-rw-r--r-- | crypto/src/asn1/x9/X962Parameters.cs | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/crypto/src/asn1/x9/X962Parameters.cs b/crypto/src/asn1/x9/X962Parameters.cs deleted file mode 100644 index 5b7eaa1de..000000000 --- a/crypto/src/asn1/x9/X962Parameters.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Org.BouncyCastle.Asn1; - -namespace Org.BouncyCastle.Asn1.X9 -{ - public class X962Parameters - : Asn1Encodable, IAsn1Choice - { - private readonly Asn1Object _params; - - public X962Parameters( - X9ECParameters ecParameters) - { - this._params = ecParameters.ToAsn1Object(); - } - - public X962Parameters( - DerObjectIdentifier namedCurve) - { - this._params = namedCurve; - } - - public X962Parameters( - Asn1Object obj) - { - this._params = obj; - } - - public bool IsNamedCurve - { - get { return (_params is DerObjectIdentifier); } - } - - public Asn1Object Parameters - { - get { return _params; } - } - - /** - * Produce an object suitable for an Asn1OutputStream. - * <pre> - * Parameters ::= CHOICE { - * ecParameters ECParameters, - * namedCurve CURVES.&id({CurveNames}), - * implicitlyCA Null - * } - * </pre> - */ - public override Asn1Object ToAsn1Object() - { - return _params; - } - } -} |