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

Org.BouncyCastle.Bcpg.OpenPgp.PgpKeyPair

public class PgpKeyPair
namespace Org.BouncyCastle.Bcpg.OpenPgp { public class PgpKeyPair { public long KeyId { get; } public PgpPublicKey PublicKey { get; } public PgpPrivateKey PrivateKey { get; } public PgpKeyPair(PublicKeyAlgorithmTag algorithm, AsymmetricCipherKeyPair keyPair, DateTime time); public PgpKeyPair(PublicKeyAlgorithmTag algorithm, AsymmetricKeyParameter pubKey, AsymmetricKeyParameter privKey, DateTime time); public PgpKeyPair(PgpPublicKey pub, PgpPrivateKey priv); } }