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

KeyFlags

public class KeyFlags : SignatureSubpacket
public const int Authentication = 32

public const int CertifyOther = 1

public const int EncryptComms = 4

public const int EncryptStorage = 8

public const int Shared = 128

public const int SignData = 2

public const int Split = 16

public int Flags { get; }

Return the flag values contained in the first 4 octets (note: at the moment the standard only uses the first one).

public KeyFlags(bool critical, bool isLongLength, byte[] data)

public KeyFlags(bool critical, int flags)