Skip to content

Commit 6ece180

Browse files
author
Lucas McDonald
committed
m
1 parent 3ae5448 commit 6ece180

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/aws/cryptosdk/enc_ctx.h

+10
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ extern "C" {
3232
* for the most part, aws_hash_table methods are used to manipulate these structures,
3333
* but we provide some higher-level helper methods in this section. These helpers
3434
* will mostly be of interest to developers of custom CMMs or keyrings.
35+
*
36+
* The values provided to the encryption context SHOULD be UTF-8 bytes.
37+
* While it is technically possible to provide invalid UTF-8 bytes,
38+
* doing so is strongly discouraged.
39+
* Messages that include invalid UTF-8 bytes in their encryption context
40+
* will not be interoperable across different language implementations
41+
* of the AWS Encryption SDK.
42+
* The ESDK for C permits writing and reading encryption contexts that
43+
* contain invalid UTF-8 bytes, but ESDKs in other languages will neither
44+
* read nor write messages whose encryption context contains invalid UTF-8.
3545
* @{
3646
*/
3747

0 commit comments

Comments
 (0)