Table of Contents

Class RsaSecretBcpgKey

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

Remarks

Base class for an RSA secret (or priate) key.

Constructors

RsaSecretBcpgKey(BcpgInputStream)

public RsaSecretBcpgKey(BcpgInputStream bcpgIn)

Parameters

bcpgIn BcpgInputStream

RsaSecretBcpgKey(BigInteger, BigInteger, BigInteger)

public RsaSecretBcpgKey(BigInteger d, BigInteger p, BigInteger q)

Parameters

d BigInteger
p BigInteger
q BigInteger

Properties

CrtCoefficient

public BigInteger CrtCoefficient { get; }

Property Value

BigInteger

Format

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

public string Format { get; }

Property Value

string

Modulus

public BigInteger Modulus { get; }

Property Value

BigInteger

PrimeExponentP

public BigInteger PrimeExponentP { get; }

Property Value

BigInteger

PrimeExponentQ

public BigInteger PrimeExponentQ { get; }

Property Value

BigInteger

PrimeP

public BigInteger PrimeP { get; }

Property Value

BigInteger

PrimeQ

public BigInteger PrimeQ { get; }

Property Value

BigInteger

PrivateExponent

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