The result of Sinetex.open/2.
:content- the content: decrypted, with its signature verified and, for C04 8 and 10, decompressed.:header- the decodedSinetex.Header. Ac03other than0x00means the counterparty is reporting an error (§5.5.5): do not answer it with another error.:sender- theSinetex.Certificatethat signed the content, ornilfor clear text.:protection-:signed_and_encrypted,:signed(C04 2, 3, 6 and 10) or:clear(the empty header of §5.6.3, only withallow_clear: true).:compression-:gzipor:zipwhen the content was decompressed,:noneotherwise. With C04 8 or 10,:nonemeans the content did not start with GZIP or ZIP magic bytes and was returned as is.
inspect/2 leaves the content out.
Summary
Types
@type t() :: %Sinetex.Opened{ compression: :gzip | :zip | :none, content: binary(), header: Sinetex.Header.t(), protection: :signed_and_encrypted | :signed | :clear, sender: Sinetex.Certificate.t() | nil }