<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.0" />

PgpPrivateKey

public class PgpPrivateKey
public AsymmetricKeyParameter Key { get; }

The contained private key.

public long KeyId { get; }

The keyId associated with the contained private key.

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

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

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