Table of Contents

Class RsaPublicBcpgKey

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

Remarks

Base class for an RSA public key.

Constructors

RsaPublicBcpgKey(BcpgInputStream)

Construct an RSA public key from the passed in stream.

public RsaPublicBcpgKey(BcpgInputStream bcpgIn)

Parameters

bcpgIn BcpgInputStream

RsaPublicBcpgKey(BigInteger, BigInteger)

public RsaPublicBcpgKey(BigInteger n, BigInteger e)

Parameters

n BigInteger

The modulus.

e BigInteger

The public exponent.

Properties

Format

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

public string Format { get; }

Property Value

string

Modulus

public BigInteger Modulus { get; }

Property Value

BigInteger

PublicExponent

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