Class ECPrivateKeyStructure
- Namespace
- Org.BouncyCastle.Asn1.Sec
- Assembly
- BouncyCastle.Cryptography.dll
public class ECPrivateKeyStructure : Asn1Encodable, IAsn1Convertible
- Inheritance
-
ECPrivateKeyStructure
- Implements
-
- Inherited Members
-
Constructors
ECPrivateKeyStructure(int, BigInteger)
public ECPrivateKeyStructure(int orderBitLength, BigInteger key)
Parameters
orderBitLength int
key BigInteger
ECPrivateKeyStructure(int, BigInteger, Asn1Encodable)
public ECPrivateKeyStructure(int orderBitLength, BigInteger key, Asn1Encodable parameters)
Parameters
orderBitLength int
key BigInteger
parameters Asn1Encodable
ECPrivateKeyStructure(int, BigInteger, DerBitString, Asn1Encodable)
public ECPrivateKeyStructure(int orderBitLength, BigInteger key, DerBitString publicKey, Asn1Encodable parameters)
Parameters
orderBitLength int
key BigInteger
publicKey DerBitString
parameters Asn1Encodable
Properties
Parameters
public Asn1Encodable Parameters { get; }
Property Value
- Asn1Encodable
PrivateKey
public Asn1OctetString PrivateKey { get; }
Property Value
- Asn1OctetString
PublicKey
public DerBitString PublicKey { get; }
Property Value
- DerBitString
Version
public DerInteger Version { get; }
Property Value
- DerInteger
Methods
GetInstance(Asn1TaggedObject, bool)
public static ECPrivateKeyStructure GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
Parameters
taggedObject Asn1TaggedObject
declaredExplicit bool
Returns
- ECPrivateKeyStructure
GetInstance(object)
public static ECPrivateKeyStructure GetInstance(object obj)
Parameters
obj object
Returns
- ECPrivateKeyStructure
GetKey()
public virtual BigInteger GetKey()
Returns
- BigInteger
GetParameters()
[Obsolete("Use 'Parameters' instead")]
public virtual Asn1Object GetParameters()
Returns
- Asn1Object
GetPublicKey()
[Obsolete("Use 'PublicKey' instead")]
public virtual DerBitString GetPublicKey()
Returns
- DerBitString
GetTagged(Asn1TaggedObject, bool)
public static ECPrivateKeyStructure GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit)
Parameters
taggedObject Asn1TaggedObject
declaredExplicit bool
Returns
- ECPrivateKeyStructure
ToAsn1Object()
public override Asn1Object ToAsn1Object()
Returns
- Asn1Object