Skip to content

Commit 65cc58b

Browse files
author
Lucas McDonald
committed
m
1 parent 6ece180 commit 65cc58b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

include/aws/cryptosdk/materials.h

+15
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,21 @@ struct aws_cryptosdk_enc_materials {
197197
*/
198198
struct aws_cryptosdk_dec_request {
199199
struct aws_allocator *alloc;
200+
/**
201+
* The encryption context for this message. CMMs are permitted to modify this
202+
* hash table in order to inject additional keys or otherwise modify the encryption
203+
* context.
204+
*
205+
* The values provided to the encryption context SHOULD be UTF-8 bytes.
206+
* While it is technically possible to provide invalid UTF-8 bytes,
207+
* doing so is strongly discouraged.
208+
* Messages that include invalid UTF-8 bytes in their encryption context
209+
* will not be interoperable across different language implementations
210+
* of the AWS Encryption SDK.
211+
* The ESDK for C permits writing and reading encryption contexts that
212+
* contain invalid UTF-8 bytes, but ESDKs in other languages will neither
213+
* read nor write messages whose encryption context contains invalid UTF-8.
214+
*/
200215
const struct aws_hash_table *enc_ctx;
201216
struct aws_array_list encrypted_data_keys;
202217
enum aws_cryptosdk_alg_id alg;

0 commit comments

Comments
 (0)