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

A one pass signature object.
Mostra file Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
Encode ( Stream outStr ) : void
GetEncoded ( ) : byte[]
InitVerify ( PgpPublicKey pubKey ) : void

Initialise the signature object for verification.

Update ( byte b ) : void
Update ( byte bytes, int off, int length ) : void
Verify ( PgpSignature pgpSig ) : bool

Verify the calculated signature against the passed in PgpSignature.

Private Methods

Method Description
PgpOnePassSignature ( BcpgInputStream bcpgInput ) : System
PgpOnePassSignature ( OnePassSignaturePacket sigPack ) : System
doCanonicalUpdateByte ( byte b ) : void
doUpdateCRLF ( ) : void

Method Details

Encode() public method

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

GetEncoded() public method

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

InitVerify() public method

Initialise the signature object for verification.
public InitVerify ( PgpPublicKey pubKey ) : void
pubKey PgpPublicKey
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

Verify the calculated signature against the passed in PgpSignature.
public Verify ( PgpSignature pgpSig ) : bool
pgpSig PgpSignature
return bool