<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Cms.CmsSignedDataParser

Streaming parser for CMS SignedData messages, the counterpart to CmsSignedData. In streaming mode only one signer can be verified per pass and parser methods must be called in order.
namespace Org.BouncyCastle.Cms { public class CmsSignedDataParser : CmsContentInfoParser { public int Version { get; } public ISet<string> DigestOids { get; } public DerObjectIdentifier SignedContentType { get; } public CmsSignedDataParser(byte[] sigBlock); public CmsSignedDataParser(CmsTypedStream signedContent, byte[] sigBlock); public CmsSignedDataParser(Stream sigData); public CmsSignedDataParser(CmsTypedStream signedContent, Stream sigData); public SignerInformationStore GetSignerInfos(); public IStore<X509V2AttributeCertificate> GetAttributeCertificates(); public IStore<X509Certificate> GetCertificates(); public IStore<X509Crl> GetCrls(); public IStore<Asn1Encodable> GetOtherRevInfos(DerObjectIdentifier otherRevInfoFormat); public CmsTypedStream GetSignedContent(); public static Stream ReplaceSigners(Stream original, SignerInformationStore signerInformationStore, Stream outStr); public static Stream ReplaceCertificatesAndCrls(Stream original, IStore<X509Certificate> x509Certs, IStore<X509Crl> x509Crls, IStore<X509V2AttributeCertificate> x509AttrCerts, Stream outStr); } }