AwsEncryptionSdk.Format.Message (AWS Encryption SDK v1.0.0)
View SourceComplete message serialization and deserialization.
An AWS Encryption SDK message consists of:
- Header - Contains algorithm suite, message ID, encryption context, EDKs
- Body - Encrypted content (framed or non-framed)
- Footer - Optional ECDSA signature (only for signed algorithm suites)
Message Structure
+--------+--------+--------+
| Header | Body | Footer |
+--------+--------+--------+
^
|
Only present for signed suites
Summary
Functions
Deserializes a complete message from binary data.
Checks if a message requires a footer based on its algorithm suite.
Types
@type framed_body() :: [AwsEncryptionSdk.Format.Body.frame()]
Framed message body content
@type non_framed_body() :: AwsEncryptionSdk.Format.Body.non_framed()
Non-framed message body content
@type t() :: %{ header: AwsEncryptionSdk.Format.Header.t(), body: non_framed_body() | framed_body(), footer: %{signature: binary()} | nil }
Complete message structure