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

Generator for old style PGP V3 Signatures.
Mostra file Open project: nonorganic/dssnet

Public Methods

Method Description
Generate ( ) : PgpSignature

Return a V3 signature object containing the current signature state.

GenerateOnePassVersion ( bool isNested ) : PgpOnePassSignature

Return the one pass header associated with the current signature.

InitSign ( int sigType, PgpPrivateKey key ) : void

Initialise the generator for signing.

InitSign ( int sigType, PgpPrivateKey key, SecureRandom random ) : void

Initialise the generator for signing.

PgpV3SignatureGenerator ( PublicKeyAlgorithmTag keyAlgorithm, HashAlgorithmTag hashAlgorithm ) : System

Create a generator for the passed in keyAlgorithm and hashAlgorithm codes.

Update ( byte b ) : void
Update ( byte b, int off, int len ) : void

Private Methods

Method Description
doCanonicalUpdateByte ( byte b ) : void
doUpdateByte ( byte b ) : void
doUpdateCRLF ( ) : void

Method Details

Generate() public method

Return a V3 signature object containing the current signature state.
public Generate ( ) : PgpSignature
return PgpSignature

GenerateOnePassVersion() public method

Return the one pass header associated with the current signature.
public GenerateOnePassVersion ( bool isNested ) : PgpOnePassSignature
isNested bool
return PgpOnePassSignature

InitSign() public method

Initialise the generator for signing.
public InitSign ( int sigType, PgpPrivateKey key ) : void
sigType int
key PgpPrivateKey
return void

InitSign() public method

Initialise the generator for signing.
public InitSign ( int sigType, PgpPrivateKey key, SecureRandom random ) : void
sigType int
key PgpPrivateKey
random Org.BouncyCastle.Security.SecureRandom
return void

PgpV3SignatureGenerator() public method

Create a generator for the passed in keyAlgorithm and hashAlgorithm codes.
public PgpV3SignatureGenerator ( PublicKeyAlgorithmTag keyAlgorithm, HashAlgorithmTag hashAlgorithm ) : System
keyAlgorithm PublicKeyAlgorithmTag
hashAlgorithm HashAlgorithmTag
return System

Update() public method

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

Update() public method

public Update ( byte b, int off, int len ) : void
b byte
off int
len int
return void