File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 17
17
def encrypt_decrypt (key_arn , source_plaintext , botocore_session = None ):
18
18
"""Encrypts and then decrypts a string under one KMS customer master key (CMK).
19
19
20
- :param str key_arn: Amazon Resource Name (ARN) of the KMS CMK
21
- :param bytes source_plaintext: Data to encrypt
22
- :param botocore_session: existing botocore session instance
23
- :type botocore_session: botocore.session.Session
24
- """
25
-
20
+ :param str key_arn: Amazon Resource Name (ARN) of the KMS CMK
21
+ :param bytes source_plaintext: Data to encrypt
22
+ :param botocore_session: existing botocore session instance
23
+ :type botocore_session: botocore.session.Session
24
+ """
26
25
kwargs = dict (key_ids = [key_arn ])
27
26
28
27
if botocore_session is not None :
Original file line number Diff line number Diff line change 19
19
def encrypt_decrypt_stream (key_arn , source_plaintext_filename , botocore_session = None ):
20
20
"""Encrypts and then decrypts streaming data under one KMS customer master key (CMK).
21
21
22
- :param str key_arn: Amazon Resource Name (ARN) of the KMS CMK
23
- :param str source_plaintext_filename: Filename of file to encrypt
24
- :param botocore_session: existing botocore session instance
25
- :type botocore_session: botocore.session.Session
26
- """
27
-
22
+ :param str key_arn: Amazon Resource Name (ARN) of the KMS CMK
23
+ :param str source_plaintext_filename: Filename of file to encrypt
24
+ :param botocore_session: existing botocore session instance
25
+ :type botocore_session: botocore.session.Session
26
+ """
28
27
kwargs = dict ()
29
28
30
29
kwargs ["key_ids" ] = [key_arn ]
You can’t perform that action at this time.
0 commit comments