An AuthenticatedData message whose MAC Cmsex.verify_mac/2 checked.
Fields:
:content- the content the MAC covers, when the message carries it;nilfor a detached message, whose content the caller gave.:content_type- its type, as a name ofCmsex.OID, such as:data, or an OID. With authenticated attributes, the content-type attribute was checked against it.:recipient- theCmsex.RecipientInfothat gave the MAC key, ornilwhen it came in:mac_key.:message- theCmsex.AuthenticatedData, for the rest: the authenticated attributes, which the MAC covers, the unauthenticated ones, which it does not, and the originator certificates.
A MAC tells that the content comes from someone who had the MAC key,
and was not changed since. Who that is depends on the recipients: see
Cmsex.mac/3.
Summary
Types
@type t() :: %Cmsex.Authenticated{ content: binary() | nil, content_type: atom() | tuple(), message: Cmsex.AuthenticatedData.t(), recipient: Cmsex.RecipientInfo.t() | nil }