Class EdSecretBcpgKey
- Namespace
- Org.BouncyCastle.Bcpg
- Assembly
- BouncyCastle.Cryptography.dll
public sealed class EdSecretBcpgKey : BcpgObject, IBcpgKey
- Inheritance
-
EdSecretBcpgKey
- Implements
- Inherited Members
Constructors
EdSecretBcpgKey(BcpgInputStream)
public EdSecretBcpgKey(BcpgInputStream bcpgIn)
Parameters
bcpgInBcpgInputStream
EdSecretBcpgKey(BigInteger)
public EdSecretBcpgKey(BigInteger x)
Parameters
Properties
Format
The base format for this key - in the case of the symmetric keys it will generally be raw indicating that the key is just a straight byte representation, for an asymmetric key the format will be PGP, indicating the key is a string of MPIs encoded in PGP format.
public string Format { get; }
Property Value
- string
"RAW" or "PGP".
X
public BigInteger X { get; }
Property Value
Methods
Encode(BcpgOutputStream)
public override void Encode(BcpgOutputStream bcpgOut)
Parameters
bcpgOutBcpgOutputStream
GetEncoded()
public override byte[] GetEncoded()
Returns
- byte[]