Table of Contents

Class SignaturePacket

Namespace
Enterprises.Org.BouncyCastle.Bcpg
Assembly
Enterprises.BouncyCastle.Crypto.dll
public class SignaturePacket : ContainedPacket
Inheritance
SignaturePacket
Inherited Members

Constructors

SignaturePacket(int, int, long, PublicKeyAlgorithmTag, HashAlgorithmTag, SignatureSubpacket[], SignatureSubpacket[], byte[], MPInteger[])

public SignaturePacket(int version, int signatureType, long keyId, PublicKeyAlgorithmTag keyAlgorithm, HashAlgorithmTag hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerprint, MPInteger[] signature)

Parameters

version int
signatureType int
keyId long
keyAlgorithm PublicKeyAlgorithmTag
hashAlgorithm HashAlgorithmTag
hashedData SignatureSubpacket[]
unhashedData SignatureSubpacket[]
fingerprint byte[]
signature MPInteger[]

SignaturePacket(int, int, long, PublicKeyAlgorithmTag, HashAlgorithmTag, long, byte[], MPInteger[])

public SignaturePacket(int version, int signatureType, long keyId, PublicKeyAlgorithmTag keyAlgorithm, HashAlgorithmTag hashAlgorithm, long creationTime, byte[] fingerprint, MPInteger[] signature)

Parameters

version int
signatureType int
keyId long
keyAlgorithm PublicKeyAlgorithmTag
hashAlgorithm HashAlgorithmTag
creationTime long
fingerprint byte[]
signature MPInteger[]

SignaturePacket(int, long, PublicKeyAlgorithmTag, HashAlgorithmTag, SignatureSubpacket[], SignatureSubpacket[], byte[], MPInteger[])

public SignaturePacket(int signatureType, long keyId, PublicKeyAlgorithmTag keyAlgorithm, HashAlgorithmTag hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerprint, MPInteger[] signature)

Parameters

signatureType int
keyId long
keyAlgorithm PublicKeyAlgorithmTag
hashAlgorithm HashAlgorithmTag
hashedData SignatureSubpacket[]
unhashedData SignatureSubpacket[]
fingerprint byte[]
signature MPInteger[]

Properties

CreationTime

public long CreationTime { get; }

Property Value

long

HashAlgorithm

public HashAlgorithmTag HashAlgorithm { get; }

Property Value

HashAlgorithmTag

KeyAlgorithm

public PublicKeyAlgorithmTag KeyAlgorithm { get; }

Property Value

PublicKeyAlgorithmTag

KeyId

public long KeyId { get; }

Property Value

long

SignatureType

public int SignatureType { get; }

Property Value

int

Version

public int Version { get; }

Property Value

int

Methods

Encode(BcpgOutputStream)

public override void Encode(BcpgOutputStream bcpgOut)

Parameters

bcpgOut BcpgOutputStream

GetHashedSubPackets()

public SignatureSubpacket[] GetHashedSubPackets()

Returns

SignatureSubpacket[]

GetSignature()

public MPInteger[] GetSignature()

Returns

MPInteger[]

GetSignatureBytes()

public byte[] GetSignatureBytes()

Returns

byte[]

GetSignatureTrailer()

public byte[] GetSignatureTrailer()

Returns

byte[]

GetUnhashedSubPackets()

public SignatureSubpacket[] GetUnhashedSubPackets()

Returns

SignatureSubpacket[]