Table of Contents

Class PgpV3SignatureGenerator

Namespace
Org.BouncyCastle.Bcpg.OpenPgp
Assembly
BouncyCastle.Cryptography.dll
public class PgpV3SignatureGenerator
Inheritance
PgpV3SignatureGenerator
Inherited Members

Remarks

Generator for old style PGP V3 Signatures.

Constructors

PgpV3SignatureGenerator(PublicKeyAlgorithmTag, HashAlgorithmTag)

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

public PgpV3SignatureGenerator(PublicKeyAlgorithmTag keyAlgorithm, HashAlgorithmTag hashAlgorithm)

Parameters

keyAlgorithm PublicKeyAlgorithmTag
hashAlgorithm HashAlgorithmTag

Methods

Generate()

Return a V3 signature object containing the current signature state.

public PgpSignature Generate()

Returns

PgpSignature

GenerateOnePassVersion(bool)

Return the one pass header associated with the current signature.

public PgpOnePassSignature GenerateOnePassVersion(bool isNested)

Parameters

isNested bool

Returns

PgpOnePassSignature

InitSign(int, PgpPrivateKey)

Initialise the generator for signing.

public void InitSign(int sigType, PgpPrivateKey privKey)

Parameters

sigType int
privKey PgpPrivateKey

InitSign(int, PgpPrivateKey, SecureRandom)

Initialise the generator for signing.

public void InitSign(int sigType, PgpPrivateKey privKey, SecureRandom random)

Parameters

sigType int
privKey PgpPrivateKey
random SecureRandom

Update(byte)

public void Update(byte b)

Parameters

b byte

Update(params byte[])

public void Update(params byte[] b)

Parameters

b byte[]

Update(byte[], int, int)

public void Update(byte[] b, int off, int len)

Parameters

b byte[]
off int
len int

Update(ReadOnlySpan<byte>)

public void Update(ReadOnlySpan<byte> input)

Parameters

input ReadOnlySpan<byte>