Table of Contents

Class PgpPrivateKey

Namespace
Org.BouncyCastle.Bcpg.OpenPgp
Assembly
BouncyCastle.Cryptography.dll
public class PgpPrivateKey
Inheritance
PgpPrivateKey
Inherited Members

Remarks

General class to contain a private key for use with other OpenPGP objects.

Constructors

PgpPrivateKey(long, PublicKeyPacket, AsymmetricKeyParameter)

Create a PgpPrivateKey from a keyID, the associated public data packet, and a regular private key.

public PgpPrivateKey(long keyID, PublicKeyPacket publicKeyPacket, AsymmetricKeyParameter privateKey)

Parameters

keyID long

ID of the corresponding public key.

publicKeyPacket PublicKeyPacket

the public key data packet to be associated with this private key.

privateKey AsymmetricKeyParameter

the private key data packet to be associated with this private key.

Properties

Key

The contained private key.

public AsymmetricKeyParameter Key { get; }

Property Value

AsymmetricKeyParameter

KeyId

The keyId associated with the contained private key.

public long KeyId { get; }

Property Value

long

PublicKeyPacket

The public key packet associated with this private key, if available.

public PublicKeyPacket PublicKeyPacket { get; }

Property Value

PublicKeyPacket