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

Org.BouncyCastle.Cms.CmsAuthenticatedData

public class CmsAuthenticatedData
Represents a CMS AuthenticatedData (MAC-protected) message. Parse an encoded message, obtain recipients from GetRecipientInfos, match one with RecipientID, recover content via RecipientInformation, and verify integrity with GetMac.
namespace Org.BouncyCastle.Cms { public class CmsAuthenticatedData { public AuthenticatedData AuthenticatedData { get; } public OriginatorInformation OriginatorInformation { get; } public AlgorithmIdentifier MacAlgorithmID { get; } public string MacAlgOid { get; } public ContentInfo ContentInfo { get; } public Org.BouncyCastle.Asn1.Cms.AttributeTable AuthAttributes { get; } public Org.BouncyCastle.Asn1.Cms.AttributeTable UnauthAttributes { get; } public CmsAuthenticatedData(byte[] authData); public CmsAuthenticatedData(Stream authData); public CmsAuthenticatedData(ContentInfo contentInfo); public byte[] GetMac(); public RecipientInformationStore GetRecipientInfos(); public Org.BouncyCastle.Asn1.Cms.AttributeTable GetAuthAttrs(); public Org.BouncyCastle.Asn1.Cms.AttributeTable GetUnauthAttrs(); public byte[] GetEncoded(); public byte[] GetContentDigest(); } }