Table of Contents

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

bcpgIn BcpgInputStream

The stream to read the packet from.

DsaPublicBcpgKey(BigInteger, BigInteger, BigInteger, BigInteger)

public DsaPublicBcpgKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y)

Parameters

p BigInteger
q BigInteger
g BigInteger
y BigInteger

Properties

Format

The format, as a string, always "PGP".

public string Format { get; }

Property Value

string

G

public BigInteger G { get; }

Property Value

BigInteger

P

public BigInteger P { get; }

Property Value

BigInteger

Q

public BigInteger Q { get; }

Property Value

BigInteger

Y

public BigInteger Y { get; }

Property Value

BigInteger

Methods

Encode(BcpgOutputStream)

public override void Encode(BcpgOutputStream bcpgOut)

Parameters

bcpgOut BcpgOutputStream

GetEncoded()

Return the standard PGP encoding of the key.

public override byte[] GetEncoded()

Returns

byte[]