Class DsaPublicBcpgKey
- Namespace
- Org.BouncyCastle.Bcpg
- Assembly
- BouncyCastle.Cryptography.dll
public class DsaPublicBcpgKey : BcpgObject, IBcpgKey
- Inheritance
-
DsaPublicBcpgKey
- Implements
- Inherited Members
Remarks
Base class for a DSA public key.
Constructors
DsaPublicBcpgKey(BcpgInputStream)
public DsaPublicBcpgKey(BcpgInputStream bcpgIn)
Parameters
bcpgInBcpgInputStreamThe stream to read the packet from.
DsaPublicBcpgKey(BigInteger, BigInteger, BigInteger, BigInteger)
public DsaPublicBcpgKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y)
Parameters
pBigIntegerqBigIntegergBigIntegeryBigInteger
Properties
Format
The format, as a string, always "PGP".
public string Format { get; }
Property Value
G
public BigInteger G { get; }
Property Value
P
public BigInteger P { get; }
Property Value
Q
public BigInteger Q { get; }
Property Value
Y
public BigInteger Y { 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[]