Class ECPublicBcpgKey
- Namespace
- Org.BouncyCastle.Bcpg
- Assembly
- BouncyCastle.Cryptography.dll
public abstract class ECPublicBcpgKey : BcpgObject, IBcpgKey
- Inheritance
-
ECPublicBcpgKey
- Implements
- Derived
- Inherited Members
Remarks
Base class for an EC Public Key.
Constructors
ECPublicBcpgKey(DerObjectIdentifier, BigInteger)
protected ECPublicBcpgKey(DerObjectIdentifier oid, BigInteger encodedPoint)
Parameters
oidDerObjectIdentifierencodedPointBigInteger
ECPublicBcpgKey(DerObjectIdentifier, ECPoint)
protected ECPublicBcpgKey(DerObjectIdentifier oid, ECPoint point)
Parameters
oidDerObjectIdentifierpointECPoint
ECPublicBcpgKey(BcpgInputStream)
protected ECPublicBcpgKey(BcpgInputStream bcpgIn)
Parameters
bcpgInBcpgInputStreamThe stream to read the packet from.
Properties
CurveOid
public virtual DerObjectIdentifier CurveOid { get; }
Property Value
EncodedPoint
public virtual BigInteger EncodedPoint { get; }
Property Value
Format
The format, as a string, always "PGP".
public string Format { get; }
Property Value
Methods
Encode(BcpgOutputStream)
public override void Encode(BcpgOutputStream bcpgOut)
Parameters
bcpgOutBcpgOutputStream
GetEncoded()
Return the standard PGP encoding of the key.
public override byte[] GetEncoded()
Returns
- byte[]
ReadBytesOfEncodedLength(BcpgInputStream)
protected static byte[] ReadBytesOfEncodedLength(BcpgInputStream bcpgIn)
Parameters
bcpgInBcpgInputStream
Returns
- byte[]