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
bcpgInBcpgInputStream
RsaPublicBcpgKey(BigInteger, BigInteger)
public RsaPublicBcpgKey(BigInteger n, BigInteger e)
Parameters
nBigIntegerThe modulus.
eBigIntegerThe public exponent.
Properties
Format
The format, as a string, always "PGP".
public string Format { get; }
Property Value
Modulus
public BigInteger Modulus { get; }
Property Value
PublicExponent
public BigInteger PublicExponent { 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[]