From 0286742ec60a3380504a2537033d5c15dc8bc7ec Mon Sep 17 00:00:00 2001 From: Lucas McDonald Date: Fri, 16 Aug 2024 14:50:57 -0700 Subject: [PATCH] cleanup --- examples/src/migration/migration_aws_kms_key_example.py | 8 ++++---- examples/src/migration/migration_raw_aes_key_example.py | 6 +++--- examples/src/migration/migration_raw_rsa_key_example.py | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/src/migration/migration_aws_kms_key_example.py b/examples/src/migration/migration_aws_kms_key_example.py index 167f01ef5..f4ced963e 100644 --- a/examples/src/migration/migration_aws_kms_key_example.py +++ b/examples/src/migration/migration_aws_kms_key_example.py @@ -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 \ @@ -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 \ diff --git a/examples/src/migration/migration_raw_aes_key_example.py b/examples/src/migration/migration_raw_aes_key_example.py index 8a519e18a..73bd3f526 100644 --- a/examples/src/migration/migration_raw_aes_key_example.py +++ b/examples/src/migration/migration_raw_aes_key_example.py @@ -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() ) @@ -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 \ diff --git a/examples/src/migration/migration_raw_rsa_key_example.py b/examples/src/migration/migration_raw_rsa_key_example.py index 829636570..09e32e5f5 100644 --- a/examples/src/migration/migration_raw_rsa_key_example.py +++ b/examples/src/migration/migration_raw_rsa_key_example.py @@ -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 \ @@ -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 \