C# Class Org.BouncyCastle.Bcpg.OpenPgp.PgpSignature

A PGP signature object.
Show file Open project: gkardava/WinPass Class Usage Examples

Public Methods

Method Description
Encode ( Stream outStream ) : void
GetEncoded ( ) : byte[]
GetHashedSubPackets ( ) : PgpSignatureSubpacketVector
GetSignature ( ) : byte[]
GetSignatureTrailer ( ) : byte[]
GetUnhashedSubPackets ( ) : PgpSignatureSubpacketVector
InitVerify ( PgpPublicKey pubKey ) : void
IsCertification ( ) : bool

Return true if this signature represents a certification.

IsCertification ( int signatureType ) : bool

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

Update ( ) : void
Update ( byte b ) : void
Update ( byte bytes, int off, int length ) : void
Verify ( ) : bool
VerifyCertification ( PgpPublicKey pubKey ) : bool

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

VerifyCertification ( PgpPublicKey masterKey, PgpPublicKey pubKey ) : bool

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

VerifyCertification ( PgpUserAttributeSubpacketVector userAttributes, PgpPublicKey key ) : bool

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

VerifyCertification ( string id, PgpPublicKey key ) : bool

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

Private Methods

Method Description
GetCreationTime ( ) : System.DateTime
GetEncodedPublicKey ( PgpPublicKey pubKey ) : byte[]
GetSig ( ) : void
PgpSignature ( BcpgInputStream bcpgInput ) : System
PgpSignature ( SignaturePacket sigPacket ) : System
PgpSignature ( SignaturePacket sigPacket, TrustPacket trustPacket ) : System
UpdateWithIdData ( int header, byte idBytes ) : void
UpdateWithPublicKey ( PgpPublicKey key ) : void
createSubpacketVector ( SignatureSubpacket pcks ) : PgpSignatureSubpacketVector
doCanonicalUpdateByte ( byte b ) : void
doUpdateCRLF ( ) : void

Method Details

Encode() public method

public Encode ( Stream outStream ) : void
outStream Stream
return void

GetEncoded() public method

public GetEncoded ( ) : byte[]
return byte[]

GetHashedSubPackets() public method

public GetHashedSubPackets ( ) : PgpSignatureSubpacketVector
return PgpSignatureSubpacketVector

GetSignature() public method

public GetSignature ( ) : byte[]
return byte[]

GetSignatureTrailer() public method

public GetSignatureTrailer ( ) : byte[]
return byte[]

GetUnhashedSubPackets() public method

public GetUnhashedSubPackets ( ) : PgpSignatureSubpacketVector
return PgpSignatureSubpacketVector

InitVerify() public method

public InitVerify ( PgpPublicKey pubKey ) : void
pubKey PgpPublicKey
return void

IsCertification() public method

Return true if this signature represents a certification.
public IsCertification ( ) : bool
return bool

IsCertification() public static method

Return true if the passed in signature type represents a certification, false if the signature type is not.
public static IsCertification ( int signatureType ) : bool
signatureType int
return bool

Update() public method

public Update ( ) : void
return void

Update() public method

public Update ( byte b ) : void
b byte
return void

Update() public method

public Update ( byte bytes, int off, int length ) : void
bytes byte
off int
length int
return void

Verify() public method

public Verify ( ) : bool
return bool

VerifyCertification() public method

Verify a key certification, such as revocation, for the passed in key.
public VerifyCertification ( PgpPublicKey pubKey ) : bool
pubKey PgpPublicKey The key we are checking.
return bool

VerifyCertification() public method

Verify a certification for the passed in key against the passed in master key.
public VerifyCertification ( PgpPublicKey masterKey, PgpPublicKey pubKey ) : bool
masterKey PgpPublicKey The key we are verifying against.
pubKey PgpPublicKey The key we are verifying.
return bool

VerifyCertification() public method

Verify the signature as certifying the passed in public key as associated with the passed in user attributes.
public VerifyCertification ( PgpUserAttributeSubpacketVector userAttributes, PgpPublicKey key ) : bool
userAttributes PgpUserAttributeSubpacketVector User attributes the key was stored under.
key PgpPublicKey The key to be verified.
return bool

VerifyCertification() public method

Verify the signature as certifying the passed in public key as associated with the passed in ID.
public VerifyCertification ( string id, PgpPublicKey key ) : bool
id string ID the key was stored under.
key PgpPublicKey The key to be verified.
return bool