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

PgpSignatureGenerator

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

public void InitSign(int sigType, PgpPrivateKey privKey)

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

public void Update(byte b)

public void Update(byte[] b)

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