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

CmsSignedData

public class CmsSignedData
public ContentInfo ContentInfo { get; }

public CmsProcessable SignedContent { get; }

Return the DerObjectIdentifier associated with the encapsulated content info structure carried in the signed data.

public int Version { get; }

Return the version number for this object.

public CmsSignedData(byte[] sigBlock)

public CmsSignedData(CmsProcessable signedContent, byte[] sigBlock)

public CmsSignedData(IDictionary<string, byte[]> hashes, byte[] sigBlock)

public CmsSignedData(CmsProcessable signedContent, Stream sigData)

public CmsSignedData(Stream sigData)

public CmsSignedData(CmsProcessable signedContent, ContentInfo sigData)

public CmsSignedData(IDictionary<string, byte[]> hashes, ContentInfo sigData)

public CmsSignedData(ContentInfo sigData)

public static CmsSignedData AddDigestAlgorithm(CmsSignedData signedData, AlgorithmIdentifier digestAlgorithm)

public static CmsSignedData AddDigestAlgorithm(CmsSignedData signedData, AlgorithmIdentifier digestAlgorithm, IDigestAlgorithmFinder digestAlgorithmFinder)

public static CmsSignedData ReplaceSigners(CmsSignedData signedData, SignerInformationStore signerInformationStore)

public static CmsSignedData ReplaceSigners(CmsSignedData signedData, SignerInformationStore signerInformationStore, IDigestAlgorithmFinder digestAlgorithmFinder)

public byte[] GetEncoded()

public byte[] GetEncoded(string encoding)