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
bcpgInBcpgInputStream
RsaSecretBcpgKey(BigInteger, BigInteger, BigInteger)
public RsaSecretBcpgKey(BigInteger d, BigInteger p, BigInteger q)
Parameters
dBigIntegerpBigIntegerqBigInteger
Properties
CrtCoefficient
public BigInteger CrtCoefficient { get; }
Property Value
Format
The format, as a string, always "PGP".
public string Format { get; }
Property Value
Modulus
public BigInteger Modulus { get; }
Property Value
PrimeExponentP
public BigInteger PrimeExponentP { get; }
Property Value
PrimeExponentQ
public BigInteger PrimeExponentQ { get; }
Property Value
PrimeP
public BigInteger PrimeP { get; }
Property Value
PrimeQ
public BigInteger PrimeQ { get; }
Property Value
PrivateExponent
public BigInteger PrivateExponent { 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[]