Skip to content

Commit 511319c

Browse files
Google APIscopybara-github
authored andcommitted
feat: add interoperable symmetric encryption system
PiperOrigin-RevId: 544660001
1 parent 18becb1 commit 511319c

3 files changed

Lines changed: 394 additions & 1 deletion

File tree

google/cloud/kms/v1/ekm_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,4 +448,4 @@ message VerifyConnectivityRequest {
448448

449449
// Response message for
450450
// [EkmService.VerifyConnectivity][google.cloud.kms.v1.EkmService.VerifyConnectivity].
451-
message VerifyConnectivityResponse {}
451+
message VerifyConnectivityResponse {}

google/cloud/kms/v1/resources.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ message CryptoKey {
8989
// [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
9090
ASYMMETRIC_DECRYPT = 6;
9191

92+
// [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
93+
// with [RawEncrypt][google.cloud.kms.v1.KeyManagementService.RawEncrypt]
94+
// and [RawDecrypt][google.cloud.kms.v1.KeyManagementService.RawDecrypt].
95+
// This purpose is meant to be used for interoperable symmetric
96+
// encryption and does not support automatic CryptoKey rotation.
97+
RAW_ENCRYPT_DECRYPT = 7;
98+
9299
// [CryptoKeys][google.cloud.kms.v1.CryptoKey] with this purpose may be used
93100
// with [MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
94101
MAC = 9;
@@ -339,6 +346,12 @@ message CryptoKeyVersion {
339346
// Creates symmetric encryption keys.
340347
GOOGLE_SYMMETRIC_ENCRYPTION = 1;
341348

349+
// AES-GCM (Galois Counter Mode) using 128-bit keys.
350+
AES_128_GCM = 41;
351+
352+
// AES-GCM (Galois Counter Mode) using 256-bit keys.
353+
AES_256_GCM = 19;
354+
342355
// RSASSA-PSS 2048 bit key with a SHA256 digest.
343356
RSA_SIGN_PSS_2048_SHA256 = 2;
344357

0 commit comments

Comments
 (0)