<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.

Gets a table of authenticated attributes indexed by attribute OID.

Gets the underlying ASN.1 AuthenticatedData structure.

public ContentInfo ContentInfo { get; }

Gets the CMS ContentInfo wrapper for this message.

public string MacAlgOid { get; }

Return the object identifier for the MAC algorithm.

Gets the MAC algorithm identifier.

Gets originator certificates and CRLs carried in the message, or null if absent.

Gets a table of unauthenticated attributes indexed by attribute OID.

public CmsAuthenticatedData(byte[] authData)

Creates an instance from an encoded AuthenticatedData message.

public CmsAuthenticatedData(Stream authData)

Creates an instance from an encoded AuthenticatedData message.

public CmsAuthenticatedData(ContentInfo contentInfo)

Creates an instance from a parsed CMS ContentInfo structure.

Return a table of the authenticated attributes. Use AuthAttributes instead.

public byte[] GetContentDigest()

Returns the message-digest value carried in authenticated attributes, or null if none is present.

public byte[] GetEncoded()

Returns the DER encoding of this message.

public byte[] GetMac()

Returns a copy of the message authentication code (MAC) value.

Returns a store of the intended recipients for this message.

Return a table of the unauthenticated attributes. Use UnauthAttributes instead.