<PackageReference Include="BouncyCastle.Cryptography" Version="2.0.0" />

PgpSignatureGenerator

public class PgpSignatureGenerator
public PgpSignatureGenerator(PublicKeyAlgorithmTag keyAlgorithm, HashAlgorithmTag hashAlgorithm)

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

Return a signature object containing the current signature state.

Generate a certification for the passed in ID and key.

Generate a certification for the passed in userAttributes.

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

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

Return the one pass header associated with the current signature.

public void InitSign(int sigType, PgpPrivateKey privKey)

Initialise the generator for signing.

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

Initialise the generator for signing.

public void Update(byte b)

public void Update(byte[] b)

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