Skip to content

Commit b414657

Browse files
committed
Responding to PR issues
1 parent d1a9fe7 commit b414657

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/integration/docs_examples_multiple_providers.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, **kwargs):
3333
def _get_raw_key(self, key_id):
3434
"""Retrieves a static, randomly generated, RSA key for the specified key id.
3535
36-
:param str key_id: : User-defined ID for the static key
36+
:param str key_id: User-defined ID for the static key
3737
:returns: Wrapping key that contains the specified static key
3838
:rtype: :class:`aws_encryption_sdk.internal.crypto.WrappingKey`
3939
"""
@@ -59,7 +59,7 @@ def _get_raw_key(self, key_id):
5959

6060

6161
def cycle_file(key_arn, source_plaintext_filename, botocore_session=None):
62-
"""Encrypts and then decrypts a file using a KMS master key provider and a custom static master
62+
"""Encrypts and then decrypts a file using a KMS master key provider and a custom static master
6363
key provider. Both master key providers are used to encrypt the plaintext file, so either one alone
6464
can decrypt it.
6565
@@ -85,7 +85,9 @@ def cycle_file(key_arn, source_plaintext_filename, botocore_session=None):
8585
static_master_key_provider = StaticRandomMasterKeyProvider()
8686
static_master_key_provider.add_master_key(static_key_id)
8787

88-
# Create a master key provider that includes the KMS and static master key providers
88+
# Add the static master key provider to the KMS master key provider
89+
# The resulting master key provider uses KMS master keys to generate (and encrypt)
90+
# data keys and static master keys to create an additional encrypted copy of each data key.
8991
kms_master_key_provider.add_master_key_provider(static_master_key_provider)
9092

9193
# Encrypt plaintext with both KMS and static master keys

0 commit comments

Comments
 (0)