<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.0-beta.114" />

PgpSignature

public class PgpSignature
public const int BinaryDocument = 0

public const int CanonicalTextDocument = 1

public const int CasualCertification = 18

public const int CertificationRevocation = 48

public const int DefaultCertification = 16

public const int DirectKey = 31

public const int KeyRevocation = 32

public const int NoCertification = 17

public const int PositiveCertification = 19

public const int PrimaryKeyBinding = 25

public const int StandAlone = 2

public const int SubkeyBinding = 24

public const int SubkeyRevocation = 40

public const int ThirdPartyConfirmation = 80

public const int Timestamp = 64

public DateTime CreationTime { get; }

The creation time of this signature.

The hash algorithm associated with this signature.

public bool HasSubpackets { get; }

Return true if the signature has either hashed or unhashed subpackets.

The key algorithm associated with this signature.

public long KeyId { get; }

The ID of the key that created the signature.

public int SignatureType { get; }

public int Version { get; }

The OpenPGP version number for this signature.

public static bool IsCertification(int signatureType)

Return true if the passed in signature type represents a certification, false if the signature type is not.

public static bool IsSignatureEncodingEqual(PgpSignature sig1, PgpSignature sig2)

public static PgpSignature Join(PgpSignature sig1, PgpSignature sig2)

public void Encode(Stream outStream)

public void Encode(Stream outStream, bool forTransfer)

public byte[] GetDigestPrefix()

Return the digest prefix of the signature.

public byte[] GetEncoded()

public byte[] GetSignature()

public byte[] GetSignatureTrailer()

public void InitVerify(PgpPublicKey pubKey)

public bool IsCertification()

Return true if this signature represents a certification.

public void Update(byte b)

public void Update(byte[] bytes)

public void Update(byte[] bytes, int off, int length)

public bool Verify()

Verify the signature as certifying the passed in public key as associated with the passed in user attributes.

public bool VerifyCertification(string id, PgpPublicKey key)

Verify the signature as certifying the passed in public key as associated with the passed in ID.

public bool VerifyCertification(PgpPublicKey masterKey, PgpPublicKey pubKey)

Verify a certification for the passed in key against the passed in master key.

public bool VerifyCertification(PgpPublicKey pubKey)

Verify a key certification, such as revocation, for the passed in key.