Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0ca1c28

Browse files
committedAug 12, 2024·
cleanup
1 parent 31d83aa commit 0ca1c28

11 files changed

+12
-12
lines changed
 

‎examples/src/aws_kms_discovery_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def encrypt_and_decrypt_with_keyring(
153153
# successfully decrypted. The resulting data key is used to decrypt the
154154
# ciphertext's message.
155155
# If all calls to KMS fail, the decryption fails.
156-
plaintext_bytes, dec_header = client.decrypt(
156+
plaintext_bytes, _ = client.decrypt(
157157
source=ciphertext,
158158
keyring=discovery_keyring,
159159
# Verify that the encryption context in the result contains the

‎examples/src/aws_kms_discovery_multi_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def encrypt_and_decrypt_with_keyring(
151151
# All of this is done serially, until a success occurs or all keyrings have
152152
# failed all (filtered) EDKs.
153153
# KMS Discovery Keyrings will attempt to decrypt Multi Region Keys (MRKs) and regular KMS Keys.
154-
plaintext_bytes, dec_header = client.decrypt(
154+
plaintext_bytes, _ = client.decrypt(
155155
source=ciphertext,
156156
keyring=discovery_multi_keyring,
157157
# Verify that the encryption context in the result contains the

‎examples/src/aws_kms_mrk_discovery_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def encrypt_and_decrypt_with_keyring(
163163
)
164164

165165
# 7. Decrypt your encrypted data using the discovery keyring.
166-
plaintext_bytes, dec_header = client.decrypt(
166+
plaintext_bytes, _ = client.decrypt(
167167
source=ciphertext,
168168
keyring=decrypt_discovery_keyring,
169169
# Verify that the encryption context in the result contains the

‎examples/src/aws_kms_mrk_discovery_multi_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def encrypt_and_decrypt_with_keyring(
172172
# All of this is done serially, until a success occurs or all keyrings have failed
173173
# all (filtered) EDKs. KMS MRK Discovery Keyrings will attempt to decrypt
174174
# Multi Region Keys (MRKs) and regular KMS Keys.
175-
plaintext_bytes, dec_header = client.decrypt(
175+
plaintext_bytes, _ = client.decrypt(
176176
source=ciphertext,
177177
keyring=decrypt_discovery_keyring,
178178
# Verify that the encryption context in the result contains the

‎examples/src/aws_kms_mrk_multi_keyring_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def encrypt_and_decrypt_with_keyring(
124124
# 6. Decrypt your encrypted data using the same AwsKmsMrkMultiKeyring you used on encrypt.
125125
# It will decrypt the data using the generator key (in this case, the MRK), since that is
126126
# the first available KMS key on the keyring that is capable of decrypting the data.
127-
plaintext_bytes, dec_header = client.decrypt(
127+
plaintext_bytes, _ = client.decrypt(
128128
source=ciphertext,
129129
keyring=kms_mrk_multi_keyring,
130130
# Verify that the encryption context in the result contains the
@@ -156,7 +156,7 @@ def encrypt_and_decrypt_with_keyring(
156156
)
157157

158158
# 9. Decrypt your encrypted data using the second region AwsKmsMrkKeyring
159-
plaintext_bytes_second_region, dec_header_second_region = client.decrypt(
159+
plaintext_bytes_second_region, _ = client.decrypt(
160160
source=ciphertext,
161161
keyring=second_region_mrk_keyring,
162162
# Verify that the encryption context in the result contains the

‎examples/src/aws_kms_rsa_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def encrypt_and_decrypt_with_keyring(
103103
"Ciphertext and plaintext data are the same. Invalid encryption"
104104

105105
# 7. Decrypt your encrypted data using the same keyring you used on encrypt.
106-
plaintext_bytes, dec_header = client.decrypt(
106+
plaintext_bytes, _ = client.decrypt(
107107
source=ciphertext,
108108
keyring=kms_rsa_keyring,
109109
# Verify that the encryption context in the result contains the

‎examples/src/default_cryptographic_materials_manager_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def encrypt_and_decrypt_with_default_cmm(
109109
"Ciphertext and plaintext data are the same. Invalid encryption"
110110

111111
# 7. Decrypt your encrypted data using the same cmm you used on encrypt.
112-
plaintext_bytes, dec_header = client.decrypt(
112+
plaintext_bytes, _ = client.decrypt(
113113
source=ciphertext,
114114
materials_manager=cmm,
115115
# Verify that the encryption context in the result contains the

‎examples/src/migration/migration_set_commitment_policy_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def encrypt_and_decrypt_with_keyring(
105105
"Ciphertext and plaintext data are the same. Invalid encryption"
106106

107107
# 7. Decrypt your encrypted data using the same keyring you used on encrypt.
108-
plaintext_bytes, dec_header = client.decrypt(
108+
plaintext_bytes, _ = client.decrypt(
109109
source=ciphertext,
110110
keyring=kms_keyring,
111111
# Verify that the encryption context in the result contains the

‎examples/src/raw_aes_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def encrypt_and_decrypt_with_keyring():
107107
"Ciphertext and plaintext data are the same. Invalid encryption"
108108

109109
# 8. Decrypt your encrypted data using the same keyring you used on encrypt.
110-
plaintext_bytes, dec_header = client.decrypt(
110+
plaintext_bytes, _ = client.decrypt(
111111
source=ciphertext,
112112
keyring=raw_aes_keyring,
113113
# Verify that the encryption context in the result contains the

‎examples/src/raw_rsa_keyring_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def encrypt_and_decrypt_with_keyring(public_key_file_name=None, private_key_file
205205
"Ciphertext and plaintext data are the same. Invalid encryption"
206206

207207
# 6. Decrypt your encrypted data using the same keyring you used on encrypt.
208-
plaintext_bytes, dec_header = client.decrypt(
208+
plaintext_bytes, _ = client.decrypt(
209209
source=ciphertext,
210210
keyring=raw_rsa_keyring,
211211
# Verify that the encryption context in the result contains the

‎examples/src/set_encryption_algorithm_suite_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def encrypt_and_decrypt_with_keyring():
128128
"Ciphertext and plaintext data are the same. Invalid encryption"
129129

130130
# 8. Decrypt your encrypted data using the same keyring you used on encrypt.
131-
plaintext_bytes, dec_header = client.decrypt(
131+
plaintext_bytes, _ = client.decrypt(
132132
source=ciphertext,
133133
keyring=raw_aes_keyring,
134134
# Verify that the encryption context in the result contains the

0 commit comments

Comments
 (0)
Please sign in to comment.