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
bcpgInBcpgInputStream
ElGamalPublicBcpgKey(BigInteger, BigInteger, BigInteger)
public ElGamalPublicBcpgKey(BigInteger p, BigInteger g, BigInteger y)
Parameters
pBigIntegergBigIntegeryBigInteger
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
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[]