Table of Contents

Class ElGamalPublicBcpgKey

Namespace
Org.BouncyCastle.Bcpg
Assembly
BouncyCastle.Cryptography.dll
public class ElGamalPublicBcpgKey : BcpgObject, IBcpgKey
Inheritance
ElGamalPublicBcpgKey
Implements
Inherited Members

Remarks

Base class for an ElGamal public key.

Constructors

ElGamalPublicBcpgKey(BcpgInputStream)

public ElGamalPublicBcpgKey(BcpgInputStream bcpgIn)

Parameters

bcpgIn BcpgInputStream

ElGamalPublicBcpgKey(BigInteger, BigInteger, BigInteger)

public ElGamalPublicBcpgKey(BigInteger p, BigInteger g, BigInteger y)

Parameters

p 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

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[]