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
keyAlgorithmPublicKeyAlgorithmTaghashAlgorithmHashAlgorithmTag
Methods
Generate()
Return a V3 signature object containing the current signature state.
public PgpSignature Generate()
Returns
GenerateOnePassVersion(bool)
Return the one pass header associated with the current signature.
public PgpOnePassSignature GenerateOnePassVersion(bool isNested)
Parameters
isNestedbool
Returns
InitSign(int, PgpPrivateKey)
Initialise the generator for signing.
public void InitSign(int sigType, PgpPrivateKey privKey)
Parameters
sigTypeintprivKeyPgpPrivateKey
InitSign(int, PgpPrivateKey, SecureRandom)
Initialise the generator for signing.
public void InitSign(int sigType, PgpPrivateKey privKey, SecureRandom random)
Parameters
sigTypeintprivKeyPgpPrivateKeyrandomSecureRandom
Update(byte)
public void Update(byte b)
Parameters
bbyte
Update(params byte[])
public void Update(params byte[] b)
Parameters
bbyte[]
Update(byte[], int, int)
public void Update(byte[] b, int off, int len)
Parameters
Update(ReadOnlySpan<byte>)
public void Update(ReadOnlySpan<byte> input)
Parameters
inputReadOnlySpan<byte>