@@ -11,10 +11,41 @@ import (
11
11
)
12
12
13
13
func main () {
14
- keyring .AwsKmsKeyringExample (utils .KmsKeyID (), utils .DdbTableName ())
15
- keyring .RawAesExample (utils .DdbTableName (), utils .KeyNamespace (), utils .KeyName (), utils .GenerateAes256KeyBytes ())
16
- itemencryptor .ItemEncryptDecryptExample (utils .KmsKeyID (), utils .DdbTableName ())
17
- misc .GetEncryptedDataKeyDescriptionExample (utils .KmsKeyID (), utils .DdbTableName ())
18
- misc .MultiPutGetExample (utils .KmsKeyID (), utils .DdbTableName ())
19
- misc .CreateBranchKeyIDExample (utils .TestKeystoreName (), utils .TestLogicalKeystoreName (), utils .TestKeystoreKmsKeyId ())
14
+ // misc examples
15
+ misc .GetEncryptedDataKeyDescriptionExample (
16
+ utils .KmsKeyID (),
17
+ utils .DdbTableName ())
18
+ misc .MultiPutGetExample (
19
+ utils .KmsKeyID (),
20
+ utils .DdbTableName ())
21
+ branchKey1 := misc .CreateBranchKeyIDExample (
22
+ utils .TestKeystoreName (),
23
+ utils .TestLogicalKeystoreName (),
24
+ utils .TestKeystoreKmsKeyId ())
25
+ branchKey2 := misc .CreateBranchKeyIDExample (
26
+ utils .TestKeystoreName (),
27
+ utils .TestLogicalKeystoreName (),
28
+ utils .TestKeystoreKmsKeyId ())
29
+
30
+ // keyring examples
31
+ keyring .AwsKmsKeyringExample (
32
+ utils .KmsKeyID (),
33
+ utils .DdbTableName ())
34
+ keyring .RawAesExample (
35
+ utils .DdbTableName (),
36
+ utils .KeyNamespace (),
37
+ utils .KeyName (),
38
+ utils .GenerateAes256KeyBytes ())
39
+ keyring .HierarchicalKeyringExample (
40
+ utils .DdbTableName (),
41
+ branchKey1 ,
42
+ branchKey2 ,
43
+ utils .TestKeystoreName (),
44
+ utils .TestLogicalKeystoreName (),
45
+ utils .TestKeystoreKmsKeyId ())
46
+
47
+ // item encryptor example
48
+ itemencryptor .ItemEncryptDecryptExample (
49
+ utils .KmsKeyID (),
50
+ utils .DdbTableName ())
20
51
}
0 commit comments