Skip to content

Commit 0cde002

Browse files
committed
feedback
1 parent b61e6aa commit 0cde002

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

Examples/runtimes/python/DynamoDBEncryption/src/keyring/raw_ecdh_keyring_example/with_encrypted_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def raw_ecdh_keyring_get_item_put_item_with_encrypted_client(ddb_table_name: str
122122
put_get_example_with_keyring_with_encrypted_client(raw_ecdh_keyring, ddb_table_name)
123123

124124

125-
def ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_client(ddb_table_name: str, curve_spec: str):
125+
def ephemeral_raw_ecdh_keyring_put_item_with_encrypted_client(ddb_table_name: str, curve_spec: str):
126126
"""
127127
Demonstrate using a raw ECDH keyring with ephemeral keys.
128128
@@ -175,7 +175,7 @@ def ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_client(ddb_table_name: st
175175
put_example_with_keyring_with_encrypted_client(raw_ecdh_keyring, ddb_table_name)
176176

177177

178-
def discovery_raw_ecdh_keyring_get_item_with_ecnrypted_client(ddb_table_name: str, curve_spec: str):
178+
def discovery_raw_ecdh_keyring_get_item_with_encrypted_client(ddb_table_name: str, curve_spec: str):
179179
"""
180180
Demonstrate using a raw ECDH keyring with discovery.
181181

Examples/runtimes/python/DynamoDBEncryption/src/keyring/raw_ecdh_keyring_example/with_encrypted_table.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
)
4747

4848

49-
def raw_ecdh_keyring_get_item_put_item_with_ecnrypted_table(ddb_table_name: str, curve_spec: str):
49+
def raw_ecdh_keyring_get_item_put_item_with_encrypted_table(ddb_table_name: str, curve_spec: str):
5050
"""
5151
Demonstrate using a raw ECDH keyring with static keys.
5252
@@ -122,7 +122,7 @@ def raw_ecdh_keyring_get_item_put_item_with_ecnrypted_table(ddb_table_name: str,
122122
put_get_example_with_keyring_with_encrypted_table(raw_ecdh_keyring, ddb_table_name)
123123

124124

125-
def ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_table(ddb_table_name: str, curve_spec: str):
125+
def ephemeral_raw_ecdh_keyring_put_item_with_encrypted_table(ddb_table_name: str, curve_spec: str):
126126
"""
127127
Demonstrate using a raw ECDH keyring with ephemeral keys.
128128
@@ -175,7 +175,7 @@ def ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_table(ddb_table_name: str
175175
put_example_with_keyring_with_encrypted_table(raw_ecdh_keyring, ddb_table_name)
176176

177177

178-
def discovery_raw_ecdh_keyring_get_item_with_ecnrypted_table(ddb_table_name: str, curve_spec: str):
178+
def discovery_raw_ecdh_keyring_get_item_with_encrypted_table(ddb_table_name: str, curve_spec: str):
179179
"""
180180
Demonstrate using a raw ECDH keyring with discovery.
181181

Examples/runtimes/python/DynamoDBEncryption/test/keyring/raw_ecdh_keyring_example/test_with_encrypted_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
should_generate_new_ecc_key_pairs,
1010
)
1111
from ....src.keyring.raw_ecdh_keyring_example.with_encrypted_client import (
12-
discovery_raw_ecdh_keyring_get_item_with_ecnrypted_client,
13-
ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_client,
12+
discovery_raw_ecdh_keyring_get_item_with_encrypted_client,
13+
ephemeral_raw_ecdh_keyring_put_item_with_encrypted_client,
1414
raw_ecdh_keyring_get_item_put_item_with_encrypted_client,
1515
)
1616
from ...test_utils import TEST_DDB_TABLE_NAME
@@ -46,7 +46,7 @@ def test_ephemeral_raw_ecdh_keyring_put_item():
4646

4747
# Part of using these keyrings is knowing which curve the keys used in the key agreement
4848
# lie on. The keyring will fail if the keys do not lie on the configured curve.
49-
ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_client(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
49+
ephemeral_raw_ecdh_keyring_put_item_with_encrypted_client(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
5050

5151

5252
def test_discovery_raw_ecdh_keyring_get_item():
@@ -68,9 +68,9 @@ def test_discovery_raw_ecdh_keyring_get_item():
6868

6969
# In this call we are writing a record that is written with an ephemeral sender key pair.
7070
# The recipient will be able to decrypt the message
71-
ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_client(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
71+
ephemeral_raw_ecdh_keyring_put_item_with_encrypted_client(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
7272

7373
# In this call we are reading a record that was written with the recipient's public key.
7474
# It will use the recipient's private key and the sender's public key stored in the message to
7575
# calculate the appropriate shared secret to successfully decrypt the message.
76-
discovery_raw_ecdh_keyring_get_item_with_ecnrypted_client(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
76+
discovery_raw_ecdh_keyring_get_item_with_encrypted_client(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)

Examples/runtimes/python/DynamoDBEncryption/test/keyring/raw_ecdh_keyring_example/test_with_encrypted_table.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
should_generate_new_ecc_key_pairs,
1010
)
1111
from ....src.keyring.raw_ecdh_keyring_example.with_encrypted_table import (
12-
discovery_raw_ecdh_keyring_get_item_with_ecnrypted_table,
13-
ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_table,
14-
raw_ecdh_keyring_get_item_put_item_with_ecnrypted_table,
12+
discovery_raw_ecdh_keyring_get_item_with_encrypted_table,
13+
ephemeral_raw_ecdh_keyring_put_item_with_encrypted_table,
14+
raw_ecdh_keyring_get_item_put_item_with_encrypted_table,
1515
)
1616
from ...test_utils import TEST_DDB_TABLE_NAME
1717

@@ -31,7 +31,7 @@ def test_raw_ecdh_keyring_get_item_put_item_with_table():
3131

3232
# Part of using these keyrings is knowing which curve the keys used in the key agreement
3333
# lie on. The keyring will fail if the keys do not lie on the configured curve.
34-
raw_ecdh_keyring_get_item_put_item_with_ecnrypted_table(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
34+
raw_ecdh_keyring_get_item_put_item_with_encrypted_table(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
3535

3636

3737
def test_ephemeral_raw_ecdh_keyring_put_item_with_table():
@@ -46,7 +46,7 @@ def test_ephemeral_raw_ecdh_keyring_put_item_with_table():
4646

4747
# Part of using these keyrings is knowing which curve the keys used in the key agreement
4848
# lie on. The keyring will fail if the keys do not lie on the configured curve.
49-
ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_table(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
49+
ephemeral_raw_ecdh_keyring_put_item_with_encrypted_table(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
5050

5151

5252
def test_discovery_raw_ecdh_keyring_get_item_with_table():
@@ -68,9 +68,9 @@ def test_discovery_raw_ecdh_keyring_get_item_with_table():
6868

6969
# In this call we are writing a record that is written with an ephemeral sender key pair.
7070
# The recipient will be able to decrypt the message
71-
ephemeral_raw_ecdh_keyring_put_item_with_ecnrypted_table(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
71+
ephemeral_raw_ecdh_keyring_put_item_with_encrypted_table(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
7272

7373
# In this call we are reading a record that was written with the recipient's public key.
7474
# It will use the recipient's private key and the sender's public key stored in the message to
7575
# calculate the appropriate shared secret to successfully decrypt the message.
76-
discovery_raw_ecdh_keyring_get_item_with_ecnrypted_table(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)
76+
discovery_raw_ecdh_keyring_get_item_with_encrypted_table(TEST_DDB_TABLE_NAME, ECDHCurveSpec.ECC_NIST_P256)

0 commit comments

Comments
 (0)