Skip to content

Commit 9b06e3f

Browse files
cleanup
1 parent d489af9 commit 9b06e3f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/src/multithreading/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ def encrypt_and_decrypt_with_keyring(
4242

4343
decrypted_plaintext_data, _ = client.decrypt(
4444
source=ciphertext_data,
45-
keyring=keyring
45+
keyring=keyring,
46+
# Verify that the encryption context in the result contains the
47+
# encryption context supplied to the encrypt method
48+
encryption_context=encryption_context,
4649
)
4750

4851
return decrypted_plaintext_data

examples/src/raw_rsa_keyring_example.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ def encrypt_and_decrypt_with_keyring(public_key_file_name=None, private_key_file
233233
try:
234234
plaintext_bytes_bob, _ = client.decrypt( # pylint: disable=unused-variable
235235
source=ciphertext,
236-
keyring=raw_rsa_keyring_bob
236+
keyring=raw_rsa_keyring_bob,
237+
# Verify that the encryption context in the result contains the
238+
# encryption context supplied to the encrypt method
239+
encryption_context=encryption_context,
237240
)
238241

239242
raise AssertionError("client.decrypt should throw an error of type AWSEncryptionSDKClientError!")

0 commit comments

Comments
 (0)