File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 10
10
2. Encryption context is correct in the decrypted message header
11
11
3. Decrypted plaintext value matches EXAMPLE_DATA
12
12
13
- AWS KMS keyrings can be used independently or in a multi-keyring with other keyrings
13
+ AWS KMS keyrings can be used independently or in a multi-keyring with other keyrings
14
14
of the same or a different type.
15
15
16
16
For more info on how to use KMS keyring, see
17
17
https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/use-kms-keyring.html
18
18
"""
19
19
import sys
20
- from typing import Dict
21
- import boto3
22
20
21
+ import boto3
23
22
from aws_cryptographic_materialproviders .mpl import AwsCryptographicMaterialProviders
24
23
from aws_cryptographic_materialproviders .mpl .config import MaterialProvidersConfig
25
24
from aws_cryptographic_materialproviders .mpl .models import CreateAwsKmsKeyringInput
26
25
from aws_cryptographic_materialproviders .mpl .references import IKeyring
26
+ from typing import Dict
27
27
28
28
import aws_encryption_sdk
29
29
from aws_encryption_sdk import CommitmentPolicy
30
30
31
-
32
31
# TODO-MPL: Remove this as part of removing PYTHONPATH hacks.
33
32
MODULE_ROOT_DIR = '/' .join (__file__ .split ("/" )[:- 1 ])
34
33
@@ -50,7 +49,6 @@ def encrypt_and_decrypt_with_keyring(
50
49
For more info on KMS Key identifiers, see
51
50
https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id
52
51
"""
53
-
54
52
# 1. Instantiate the encryption SDK client.
55
53
# This builds the client with the REQUIRE_ENCRYPT_REQUIRE_DECRYPT commitment policy,
56
54
# which enforces that this client only encrypts using committing algorithm suites and enforces
You can’t perform that action at this time.
0 commit comments