A DigestedData message, as Cmsex.decode/2 reads it (RFC 5652, 7): a
content and its digest, which shows it was not changed by accident, and
nothing more: anyone can write a new digest. Cmsex.verify_digest/2
checks it.
Fields:
:version- the version written in the message.:digest_algorithm- the name of the digest algorithm, such as:sha256, or its OID.:content_type- the type of the content, as a name ofCmsex.OIDor an OID.:content- the content, ornilwhen it is not in the message. For a PKCS #7 message whose content is not an OCTET STRING, it is the content octets of that value, as inCmsex.SignedData.:pkcs7_content- for such a message, the whole encoding of the content;nilotherwise.:digest- the digest.:deviations-:digested_data_versionwhen the version is not 0 for:data, or 2 for another type.