You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Examples/runtimes/java/DynamoDbEncryption/src/main/java/software/amazon/cryptography/examples/keyring/KmsEcdhKeyringExample.java
Copy file name to clipboardExpand all lines: Examples/runtimes/java/DynamoDbEncryption/src/main/java/software/amazon/cryptography/examples/keyring/RawEcdhKeyringExample.java
Copy file name to clipboardExpand all lines: Examples/runtimes/java/DynamoDbEncryption/src/test/java/software/amazon/cryptography/examples/keyring/TestKmsEcdhKeyringExample.java
+4-2
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,10 @@ public class TestKmsEcdhKeyringExample {
12
12
13
13
@Test
14
14
publicvoidTestKmsEcdhKeyringExampleStatic() {
15
-
// You may provide your own ECC public keys at EXAMPLE_ECC_PUBLIC_KEY_SENDER_FILENAME
16
-
// and EXAMPLE_ECC_PUBLIC_KEY_RECIPIENT_FILENAME.
15
+
// You may provide your own ECC public keys at
16
+
// - EXAMPLE_ECC_PUBLIC_KEY_SENDER_FILENAME
17
+
// - EXAMPLE_ECC_PUBLIC_KEY_RECIPIENT_FILENAME.
18
+
// If you provide these, the keys MUST be on curve P256
17
19
// This must be the public key for the ECC key represented at eccKeyArn
18
20
// If this file is not present, this will write a UTF-8 encoded PEM file for you.
Copy file name to clipboardExpand all lines: Examples/runtimes/java/DynamoDbEncryption/src/test/java/software/amazon/cryptography/examples/keyring/TestRawEcdhKeyringExample.java
+3
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ public void TestStaticRawEcdhKeyringExample() {
13
13
// You may provide your own ECC Key pairs in the files located at
14
14
// - EXAMPLE_ECC_PRIVATE_KEY_FILENAME_SENDER
15
15
// - EXAMPLE_ECC_PUBLIC_KEY_FILENAME_RECIPIENT
16
+
// If you provide this, the keys MUST be on curve P256
16
17
// If these files are not present, this will generate a pair for you.
17
18
// For this example we will use the curve P256.
18
19
if (RawEcdhKeyringExample.shouldGenerateNewEccKeyPairs()) {
@@ -31,6 +32,7 @@ public void TestStaticRawEcdhKeyringExample() {
31
32
publicvoidTestEphemeralRawEcdhKeyringExample() {
32
33
// You may provide your own ECC Public Key in the files located at
33
34
// - EXAMPLE_ECC_PUBLIC_KEY_FILENAME_RECIPIENT
35
+
// If you provide this, the keys MUST be on curve P256
34
36
// If these files are not present, this will generate a pair for you.
35
37
// For this example we will use the curve P256.
36
38
if (RawEcdhKeyringExample.shouldGenerateNewEccKeyPairs()) {
@@ -50,6 +52,7 @@ public void TestDiscoveryRawEcdhKeyringExample() {
50
52
// You may provide your own ECC Public Key in the files located at
51
53
// - EXAMPLE_ECC_PUBLIC_KEY_FILENAME_RECIPIENT
52
54
// - EXAMPLE_ECC_PRIVATE_KEY_FILENAME_RECIPIENT
55
+
// If you provide this, the keys MUST be on curve P256
53
56
// If these files are not present, this will generate a pair for you.
54
57
// For this example we will use the curve P256.
55
58
if (RawEcdhKeyringExample.shouldGenerateNewEccKeyPairs()) {
0 commit comments