Skip to content

Commit 522467d

Browse files
author
Lucas McDonald
committed
m
1 parent b6a106a commit 522467d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

include/aws/cryptosdk/materials.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,14 @@ struct aws_cryptosdk_enc_request {
138138
* context.
139139
*
140140
* The values provided to the encryption context SHOULD be UTF-8 bytes.
141-
* You may choose to provide invalid UTF-8 bytes in the encryption context,
142-
* but this is discouraged.
143-
* Messages whose encryption contexts contain invalid UTF-8 characters will
144-
* not be interoperable with other language implementations of the encryption SDK.
145-
* The encryption SDK for C will allow writing and reading invalid UTF-8 in encryption
146-
* contexts, but the encryption SDK in other languages will neither read nor write
147-
* messages whose encryption context contains invalid UTF-8 characters.
141+
* While it is technically possible to provide invalid UTF-8 bytes,
142+
* doing so is strongly discouraged.
143+
* Messages that include invalid UTF-8 bytes in their encryption context
144+
* will not be interoperable across different language implementations
145+
* of the AWS Encryption SDK.
146+
* The ESDK for C permits writing and reading encryption contexts that
147+
* contain invalid UTF-8 bytes, but ESDKs in other language will neither
148+
* read nor write messages whose encryption context contains invalid UTF-8.
148149
*/
149150
struct aws_hash_table *enc_ctx;
150151
/**

0 commit comments

Comments
 (0)