Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmcdonald3 committed Aug 16, 2024
1 parent 677d6b3 commit 0286742
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions examples/src/migration/migration_aws_kms_key_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def migration_aws_kms_key(
# that the encryption context used in the decrypt operation
# includes all key pairs from the encrypt operation. (The SDK can add pairs, so don't require an exact match.)
assert all(
pair in decrypted_header_keyring_using_mkp.encryption_context.items() \
for pair in enc_header_keyring.encryption_context.items()
pair in decrypted_header_keyring_using_mkp.encryption_context.items()
for pair in enc_header_keyring.encryption_context.items()
)

assert decrypted_ciphertext_keyring_using_keyring == decrypted_ciphertext_keyring_using_mkp \
Expand All @@ -179,8 +179,8 @@ def migration_aws_kms_key(
# that the encryption context used in the decrypt operation
# includes all key pairs from the encrypt operation. (The SDK can add pairs, so don't require an exact match.)
assert all(
pair in decrypted_header_mkp_using_mkp.encryption_context.items() \
for pair in enc_header_mkp.encryption_context.items()
pair in decrypted_header_mkp_using_mkp.encryption_context.items()
for pair in enc_header_mkp.encryption_context.items()
)

assert decrypted_ciphertext_mkp_using_keyring == decrypted_ciphertext_mkp_using_mkp \
Expand Down
6 changes: 3 additions & 3 deletions examples/src/migration/migration_raw_aes_key_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def migration_raw_aes_key():
# that the encryption context used in the decrypt operation
# includes all key pairs from the encrypt operation. (The SDK can add pairs, so don't require an exact match.)
assert all(
pair in decrypted_header_keyring_using_mkp.encryption_context.items() \
pair in decrypted_header_keyring_using_mkp.encryption_context.items()
for pair in enc_header_keyring.encryption_context.items()
)

Expand All @@ -220,8 +220,8 @@ def migration_raw_aes_key():
# that the encryption context used in the decrypt operation
# includes all key pairs from the encrypt operation. (The SDK can add pairs, so don't require an exact match.)
assert all(
pair in decrypted_header_mkp_using_mkp.encryption_context.items() \
for pair in enc_header_mkp.encryption_context.items()
pair in decrypted_header_mkp_using_mkp.encryption_context.items()
for pair in enc_header_mkp.encryption_context.items()
)

assert decrypted_ciphertext_mkp_using_keyring == decrypted_ciphertext_mkp_using_mkp \
Expand Down
8 changes: 4 additions & 4 deletions examples/src/migration/migration_raw_rsa_key_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def migration_raw_rsa_key(
# that the encryption context used in the decrypt operation
# includes all key pairs from the encrypt operation. (The SDK can add pairs, so don't require an exact match.)
assert all(
pair in decrypted_header_keyring_using_mkp.encryption_context.items() \
for pair in enc_header_keyring.encryption_context.items()
pair in decrypted_header_keyring_using_mkp.encryption_context.items()
for pair in enc_header_keyring.encryption_context.items()
)

assert decrypted_ciphertext_keyring_using_keyring == decrypted_ciphertext_keyring_using_mkp \
Expand All @@ -272,8 +272,8 @@ def migration_raw_rsa_key(
# that the encryption context used in the decrypt operation
# includes all key pairs from the encrypt operation. (The SDK can add pairs, so don't require an exact match.)
assert all(
pair in decrypted_header_mkp_using_mkp.encryption_context.items() \
for pair in enc_header_mkp.encryption_context.items()
pair in decrypted_header_mkp_using_mkp.encryption_context.items()
for pair in enc_header_mkp.encryption_context.items()
)

assert decrypted_ciphertext_mkp_using_keyring == decrypted_ciphertext_mkp_using_mkp \
Expand Down

0 comments on commit 0286742

Please sign in to comment.