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

Org.BouncyCastle.Cms.CmsSignedGenerator

public abstract class CmsSignedGenerator
namespace Org.BouncyCastle.Cms { public abstract class CmsSignedGenerator { public static readonly string Data; public static readonly string DigestSha1; public static readonly string DigestSha224; public static readonly string DigestSha256; public static readonly string DigestSha384; public static readonly string DigestSha512; public static readonly string DigestSha512_224; public static readonly string DigestSha512_256; public static readonly string DigestMD5; public static readonly string DigestGost3411; public static readonly string DigestRipeMD128; public static readonly string DigestRipeMD160; public static readonly string DigestRipeMD256; public static readonly string EncryptionRsa; public static readonly string EncryptionDsa; public static readonly string EncryptionECDsa; public static readonly string EncryptionRsaPss; public static readonly string EncryptionGost3410; public static readonly string EncryptionECGost3410; public static readonly string EncryptionECGost3410_2012_256; public static readonly string EncryptionECGost3410_2012_512; protected readonly SecureRandom m_random; public bool UseDerForCerts { get; set; } public bool UseDerForCrls { get; set; } protected CmsSignedGenerator(); protected CmsSignedGenerator(SecureRandom random); public void AddAttributeCertificate(X509V2AttributeCertificate attrCert); public void AddAttributeCertificates(IStore<X509V2AttributeCertificate> attrCertStore); public void AddCertificate(X509Certificate cert); public void AddCertificates(IStore<X509Certificate> certStore); public void AddCrl(X509Crl crl); public void AddCrls(IStore<X509Crl> crlStore); public void AddOtherRevocationInfo(OtherRevocationInfoFormat otherRevocationInfo); public void AddOtherRevocationInfos(IStore<OtherRevocationInfoFormat> otherRevocationInfoStore); public void AddOtherRevocationInfos(DerObjectIdentifier otherRevInfoFormat, IStore<Asn1Encodable> otherRevInfoStore); public void AddSigners(SignerInformationStore signerStore); public IDictionary<string, byte[]> GetGeneratedDigests(); } }