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

Org.BouncyCastle.Bcpg.PublicKeyPacket

public static readonly byte LibrePgp5

Non-Standard LibrePGP introduced v5, which is only supported by a subset of vendors.

public static readonly int MaxLength

public static readonly byte Version3

OpenPGP v3 keys are deprecated. They can only be used with RSA.

public static readonly byte Version4

OpenPGP v4 keys are (at the time of writing) widely used, but are subject to some attacks.

public static readonly byte Version6

OpenPGP v6 keys are newly introduced.

public virtual PublicKeyAlgorithmTag Algorithm { get; }

public virtual IBcpgKey Key { get; }

public virtual int ValidDays { get; }

public virtual int Version { get; }

public virtual byte VersionByte { get; }

Construct a version 4 public key packet.

public PublicKeyPacket(byte version, PublicKeyAlgorithmTag algorithm, DateTime time, IBcpgKey key)

public static long GetKeyID(PublicKeyPacket publicPk, byte[] fingerprint)

public virtual byte[] GetEncodedContents()

public virtual DateTime GetTime()