<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.
public ISet<string> DigestOids { get; }

Gets the digest algorithm OIDs for which running digests are maintained.

Gets the content type OID of the signed encapsulated content.

public int Version { get; }

Gets the SignedData version number.

public CmsSignedDataParser(byte[] sigBlock)

Creates a parser from an encoded SignedData message with encapsulated content.

public CmsSignedDataParser(CmsTypedStream signedContent, byte[] sigBlock)

Creates a parser from detached content and an encoded SignedData message without encapsulated content.

public CmsSignedDataParser(Stream sigData)

Creates a parser from an encoded SignedData message with encapsulated content.

public CmsSignedDataParser(CmsTypedStream signedContent, Stream sigData)

Creates a parser from optional detached content and an encoded SignedData message.

public static Stream ReplaceCertificatesAndCrls(Stream original, IStore<X509Certificate> x509Certs, IStore<X509Crl> x509Crls, IStore<X509V2AttributeCertificate> x509AttrCerts, Stream outStr)

Writes a copy of original SignedData to outStr with certificates and CRLs replaced. The output stream is returned unclosed.

public static Stream ReplaceSigners(Stream original, SignerInformationStore signerInformationStore, Stream outStr)

Writes a copy of original SignedData to outStr with signers replaced by signerInformationStore. The output stream is returned unclosed.

Returns a store of attribute certificates carried in the message, if any.

Returns a store of public-key certificates carried in the message, if any.

Returns a store of CRLs carried in the message, if any.

Returns a store of other revocation information entries of the given format, if any.

Returns a stream over the signed content with digest calculators attached, or null if no content is present.

Returns a store of signers associated with the message signatures.