Table of Contents

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

bcpgIn BcpgInputStream

EdSecretBcpgKey(BigInteger)

public EdSecretBcpgKey(BigInteger x)

Parameters

x BigInteger

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

BigInteger

Methods

Encode(BcpgOutputStream)

public override void Encode(BcpgOutputStream bcpgOut)

Parameters

bcpgOut BcpgOutputStream

GetEncoded()

public override byte[] GetEncoded()

Returns

byte[]