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

Org.BouncyCastle.Cms.CmsAuthenticatedDataParser

Streaming parser for CMS AuthenticatedData messages, the counterpart to CmsAuthenticatedData. In streaming mode only one recipient can be tried and parser methods must be called in order.
public string MacAlgOid { get; }

Return the object identifier for the MAC algorithm.

Gets the MAC algorithm identifier.

public Asn1Object MacAlgParams { get; }

Return the ASN.1 encoded MAC algorithm parameters, or null if there aren't any.

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

public CmsAuthenticatedDataParser(byte[] envelopedData)

Creates a parser from an encoded AuthenticatedData message.

public CmsAuthenticatedDataParser(Stream envelopedData)

Creates a parser from an encoded AuthenticatedData message.

Returns a table of authenticated attributes indexed by attribute OID, or null if absent.

public byte[] GetMac()

Returns a copy of the message authentication code. Call after the encapsulated content stream has been read to end-of-file.

Returns a store of the intended recipients for this message.

Returns a table of unauthenticated attributes indexed by attribute OID, or null if absent.