-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make GCP KMS integration HelloWorld example consistent with AWS example.
- Remove "encrypt" and "decrypt" functions. They create a new keyset handle every time they are called which should be avoided. - The "getKeysetHandle" function creates a new keyset if there is non, and loads it otherwise. I think this is bad pattern we should avoid. In this example, I think it's better to just fail if the keyset exists, and have two functions that do these two steps. PiperOrigin-RevId: 560677116 Change-Id: I68c66f0c65f03c0f5dbc79d2767e5330e5f0c9c8
- Loading branch information
1 parent
025cd27
commit 0e3d248
Showing
1 changed file
with
19 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters