Table of Contents

Class ElGamalSecretBcpgKey

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

Remarks

Base class for an ElGamal secret key.

Constructors

ElGamalSecretBcpgKey(BcpgInputStream)

public ElGamalSecretBcpgKey(BcpgInputStream bcpgIn)

Parameters

bcpgIn BcpgInputStream

ElGamalSecretBcpgKey(BigInteger)

public ElGamalSecretBcpgKey(BigInteger x)

Parameters

x BigInteger

Properties

Format

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

public string Format { get; }

Property Value

string

X

public BigInteger X { 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[]