File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ func main() {
13
13
itemencryptor .ItemEncryptDecryptExample (utils .KmsKeyID (), utils .DdbTableName ())
14
14
misc .GetEncryptedDataKeyDescriptionExample (utils .KmsKeyID (), utils .DdbTableName ())
15
15
misc .MultiPutGetExample (utils .KmsKeyID (), utils .DdbTableName ())
16
+ misc .CreateBranchKeyIDExample (utils .TestKeystoreName (), utils .TestLogicalKeystoreName (), utils .TestKeystoreKmsKeyId ())
16
17
}
Original file line number Diff line number Diff line change @@ -6,13 +6,28 @@ package utils
6
6
import "crypto/rand"
7
7
8
8
const (
9
- kmsKeyID = "arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f"
10
- ddbTableName = "DynamoDbEncryptionInterceptorTestTableCS"
11
- keyNamespace = "my-key-namespace"
12
- keyName = "my-key-name"
13
- aesKeyBytes = 32 // 256 bits = 32 bytes
9
+ kmsKeyID = "arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f"
10
+ ddbTableName = "DynamoDbEncryptionInterceptorTestTableCS"
11
+ keyNamespace = "my-key-namespace"
12
+ keyName = "my-key-name"
13
+ aesKeyBytes = 32 // 256 bits = 32 bytes
14
+ testKeystoreName = "KeyStoreDdbTable"
15
+ testLogicalKeystoreName = "KeyStoreDdbTable"
16
+ testKeystoreKmsKeyId = "arn:aws:kms:us-west-2:370957321024:key/9d989aa2-2f9c-438c-a745-cc57d3ad0126"
14
17
)
15
18
19
+ func TestKeystoreName () string {
20
+ return testKeystoreName
21
+ }
22
+
23
+ func TestLogicalKeystoreName () string {
24
+ return testLogicalKeystoreName
25
+ }
26
+
27
+ func TestKeystoreKmsKeyId () string {
28
+ return testKeystoreKmsKeyId
29
+ }
30
+
16
31
func KmsKeyID () string {
17
32
return kmsKeyID
18
33
}
You can’t perform that action at this time.
0 commit comments