Org.BouncyCastle.Bcpg.OpenPgp.PgpSignature
namespace Org.BouncyCastle.Bcpg.OpenPgp
{
public class PgpSignature
{
public const int BinaryDocument = 0;
public const int CanonicalTextDocument = 1;
public const int StandAlone = 2;
public const int DefaultCertification = 16;
public const int NoCertification = 17;
public const int CasualCertification = 18;
public const int PositiveCertification = 19;
public const int SubkeyBinding = 24;
public const int PrimaryKeyBinding = 25;
public const int DirectKey = 31;
public const int KeyRevocation = 32;
public const int SubkeyRevocation = 40;
public const int CertificationRevocation = 48;
public const int Timestamp = 64;
public const int ThirdPartyConfirmation = 80;
public int Version { get; }
public PublicKeyAlgorithmTag KeyAlgorithm { get; }
public HashAlgorithmTag HashAlgorithm { get; }
public int SignatureType { get; }
public long KeyId { get; }
public DateTime CreationTime { get; }
public bool HasSubpackets { get; }
public byte[] GetDigestPrefix();
public bool IsCertification();
public void InitVerify(PgpPublicKey pubKey);
public void Update(byte b);
public void Update(params byte[] bytes);
public void Update(byte[] bytes, int off, int length);
public void Update(ReadOnlySpan<byte> input);
public bool Verify();
public bool VerifyCertification(PgpUserAttributeSubpacketVector userAttributes, PgpPublicKey key);
public bool VerifyCertification(string id, PgpPublicKey key);
public bool VerifyCertification(PgpPublicKey masterKey, PgpPublicKey pubKey);
public bool VerifyCertification(PgpPublicKey pubKey);
public byte[] GetSignatureTrailer();
public PgpSignatureSubpacketVector GetHashedSubPackets();
public PgpSignatureSubpacketVector GetUnhashedSubPackets();
public byte[] GetSignature();
public byte[] GetEncoded();
public void Encode(Stream outStream);
public void Encode(Stream outStream, bool forTransfer);
public static bool IsCertification(int signatureType);
public static bool IsSignatureEncodingEqual(PgpSignature sig1, PgpSignature sig2);
public static PgpSignature Join(PgpSignature sig1, PgpSignature sig2);
}
}