Skip to content

Commit f7a0a7a

Browse files
committed
fix
1 parent 8bd9383 commit f7a0a7a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/src/keyrings/aws_kms_rsa_keyring_example.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737

3838
def encrypt_and_decrypt_with_keyring(
3939
kms_rsa_key_id: str,
40-
kms_rsa_public_key: str
40+
public_key: str
4141
):
4242
"""Demonstrate an encrypt/decrypt cycle using an AWS KMS RSA keyring.
4343
44-
Usage: encrypt_and_decrypt_with_keyring(kms_rsa_key_id, kms_rsa_public_key)
44+
Usage: encrypt_and_decrypt_with_keyring(kms_rsa_key_id, public_key)
4545
:param kms_rsa_key_id: KMS RSA Key identifier for the KMS RSA key you want to use
4646
:type kms_rsa_key_id: string
47-
:param kms_rsa_public_key: KMS RSA public key you want to use
48-
:type kms_rsa_public_key: string
47+
:param public_key: public key you want to use
48+
:type public_key: string
4949
5050
For more information on KMS Key identifiers, see
5151
https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id
@@ -82,7 +82,7 @@ def encrypt_and_decrypt_with_keyring(
8282
)
8383

8484
keyring_input: CreateAwsKmsRsaKeyringInput = CreateAwsKmsRsaKeyringInput(
85-
public_key=kms_rsa_public_key,
85+
public_key=public_key,
8686
kms_key_id=kms_rsa_key_id,
8787
encryption_algorithm="RSAES_OAEP_SHA_256",
8888
kms_client=kms_client

examples/test/keyrings/test_i_aws_kms_rsa_keyring_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_encrypt_and_decrypt_with_keyring():
1313
kms_rsa_key_id = "arn:aws:kms:us-west-2:370957321024:key/mrk-63d386cb70614ea59b32ad65c9315297"
1414

1515
# THIS IS A PUBLIC RESOURCE AND SHOULD NOT BE USED IN A PRODUCTION ENVIRONMENT
16-
kms_rsa_public_key = bytes("-----BEGIN PUBLIC KEY-----\n"
16+
public_key = bytes("-----BEGIN PUBLIC KEY-----\n"
1717
+ "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA27Uc/fBaMVhxCE/SpCMQ"
1818
+ "oSBRSzQJw+o2hBaA+FiPGtiJ/aPy7sn18aCkelaSj4kwoC79b/arNHlkjc7OJFsN"
1919
+ "/GoFKgNvaiY4lOeJqEiWQGSSgHtsJLdbO2u4OOSxh8qIRAMKbMgQDVX4FR/PLKeK"
@@ -22,4 +22,4 @@ def test_encrypt_and_decrypt_with_keyring():
2222
+ "yy4kfOL0Z/nhxRKe4jRZ/5v508qIzgzCksYy7Y3QbMejAtiYnr7s5/d5KWw0swou"
2323
+ "twIDAQAB"
2424
+ "\n-----END PUBLIC KEY-----", 'utf-8')
25-
encrypt_and_decrypt_with_keyring(kms_rsa_key_id, kms_rsa_public_key)
25+
encrypt_and_decrypt_with_keyring(kms_rsa_key_id, public_key)

0 commit comments

Comments
 (0)