From f1d52c1d39f7dec5e5f40e516276c855686b37b4 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Mon, 14 Jun 2021 22:51:58 -0700 Subject: [PATCH] feat: add ECDSA secp256k1 to the list of supported algorithms. PiperOrigin-RevId: 379309757 Source-Author: Google APIs Source-Date: Mon Jun 14 10:46:14 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 8d1d6694519ed9a1195067cd2138376ac1389883 Source-Link: https://github.com/googleapis/googleapis/commit/8d1d6694519ed9a1195067cd2138376ac1389883 --- .../KeyManagementServiceClientTest.g.cs | 76 ++++++------- .../KeyManagementServiceClient.g.cs | 33 ++++-- .../Google.Cloud.Kms.V1/Resources.g.cs | 107 +++++++++--------- .../Google.Cloud.Kms.V1/ServiceGrpc.g.cs | 17 ++- apis/Google.Cloud.Kms.V1/synth.metadata | 2 +- 5 files changed, 128 insertions(+), 107 deletions(-) diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.Tests/KeyManagementServiceClientTest.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.Tests/KeyManagementServiceClientTest.g.cs index c8d14a5ad814..5c355d19a2e3 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.Tests/KeyManagementServiceClientTest.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1.Tests/KeyManagementServiceClientTest.g.cs @@ -371,7 +371,7 @@ public void GetCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -402,7 +402,7 @@ public void GetCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -435,7 +435,7 @@ public void GetCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -466,7 +466,7 @@ public void GetCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -499,7 +499,7 @@ public void GetCryptoKeyVersionResourceNames() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -530,7 +530,7 @@ public void GetCryptoKeyVersionResourceNames() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -557,7 +557,7 @@ public void GetPublicKeyRequestObject() PublicKey expectedResponse = new PublicKey { Pem = "pemd6ff2189", - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, PemCrc32C = 7888183666447720391L, PublicKeyName = PublicKeyName.FromProjectLocationKeyRingCryptoKeyCryptoKeyVersion("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"), }; @@ -579,7 +579,7 @@ public void GetPublicKeyRequestObject() PublicKey expectedResponse = new PublicKey { Pem = "pemd6ff2189", - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, PemCrc32C = 7888183666447720391L, PublicKeyName = PublicKeyName.FromProjectLocationKeyRingCryptoKeyCryptoKeyVersion("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"), }; @@ -603,7 +603,7 @@ public void GetPublicKey() PublicKey expectedResponse = new PublicKey { Pem = "pemd6ff2189", - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, PemCrc32C = 7888183666447720391L, PublicKeyName = PublicKeyName.FromProjectLocationKeyRingCryptoKeyCryptoKeyVersion("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"), }; @@ -625,7 +625,7 @@ public void GetPublicKey() PublicKey expectedResponse = new PublicKey { Pem = "pemd6ff2189", - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, PemCrc32C = 7888183666447720391L, PublicKeyName = PublicKeyName.FromProjectLocationKeyRingCryptoKeyCryptoKeyVersion("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"), }; @@ -649,7 +649,7 @@ public void GetPublicKeyResourceNames() PublicKey expectedResponse = new PublicKey { Pem = "pemd6ff2189", - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, PemCrc32C = 7888183666447720391L, PublicKeyName = PublicKeyName.FromProjectLocationKeyRingCryptoKeyCryptoKeyVersion("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"), }; @@ -671,7 +671,7 @@ public void GetPublicKeyResourceNames() PublicKey expectedResponse = new PublicKey { Pem = "pemd6ff2189", - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, PemCrc32C = 7888183666447720391L, PublicKeyName = PublicKeyName.FromProjectLocationKeyRingCryptoKeyCryptoKeyVersion("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]"), }; @@ -1226,7 +1226,7 @@ public void CreateCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1258,7 +1258,7 @@ public void CreateCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1292,7 +1292,7 @@ public void CreateCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1324,7 +1324,7 @@ public void CreateCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1358,7 +1358,7 @@ public void CreateCryptoKeyVersionResourceNames() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1390,7 +1390,7 @@ public void CreateCryptoKeyVersionResourceNames() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1413,7 +1413,7 @@ public void ImportCryptoKeyVersionRequestObject() ImportCryptoKeyVersionRequest request = new ImportCryptoKeyVersionRequest { ParentAsCryptoKeyName = CryptoKeyName.FromProjectLocationKeyRingCryptoKey("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, ImportJob = "import_job02c374ab", RsaAesWrappedKey = proto::ByteString.CopyFromUtf8("rsa_aes_wrapped_keyeffad66d"), }; @@ -1426,7 +1426,7 @@ public void ImportCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1447,7 +1447,7 @@ public void ImportCryptoKeyVersionRequestObject() ImportCryptoKeyVersionRequest request = new ImportCryptoKeyVersionRequest { ParentAsCryptoKeyName = CryptoKeyName.FromProjectLocationKeyRingCryptoKey("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]"), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, ImportJob = "import_job02c374ab", RsaAesWrappedKey = proto::ByteString.CopyFromUtf8("rsa_aes_wrapped_keyeffad66d"), }; @@ -1460,7 +1460,7 @@ public void ImportCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1816,7 +1816,7 @@ public void UpdateCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1848,7 +1848,7 @@ public void UpdateCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1882,7 +1882,7 @@ public void UpdateCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -1914,7 +1914,7 @@ public void UpdateCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2731,7 +2731,7 @@ public void DestroyCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2762,7 +2762,7 @@ public void DestroyCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2795,7 +2795,7 @@ public void DestroyCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2826,7 +2826,7 @@ public void DestroyCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2859,7 +2859,7 @@ public void DestroyCryptoKeyVersionResourceNames() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2890,7 +2890,7 @@ public void DestroyCryptoKeyVersionResourceNames() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2923,7 +2923,7 @@ public void RestoreCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2954,7 +2954,7 @@ public void RestoreCryptoKeyVersionRequestObject() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -2987,7 +2987,7 @@ public void RestoreCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -3018,7 +3018,7 @@ public void RestoreCryptoKeyVersion() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -3051,7 +3051,7 @@ public void RestoreCryptoKeyVersionResourceNames() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), @@ -3082,7 +3082,7 @@ public void RestoreCryptoKeyVersionResourceNames() DestroyEventTime = new wkt::Timestamp(), ProtectionLevel = ProtectionLevel.Hsm, Attestation = new KeyOperationAttestation(), - Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPss4096Sha512, + Algorithm = CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm.RsaSignPkcs13072Sha256, GenerateTime = new wkt::Timestamp(), ImportJob = "import_job02c374ab", ImportTime = new wkt::Timestamp(), diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.g.cs index ec33b95d5595..6ad582fc506b 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/KeyManagementServiceClient.g.cs @@ -3234,7 +3234,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -3245,7 +3246,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -3256,7 +3258,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request object containing all of the parameters for the API call. /// A to use for this RPC. @@ -3267,7 +3270,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// /// Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update. @@ -3287,7 +3291,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// /// Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update. @@ -3307,7 +3312,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// /// Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update. @@ -3323,7 +3329,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// /// Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update. @@ -3343,7 +3350,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// /// Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update. @@ -3363,7 +3371,8 @@ internal static KeyManagementServiceClient Create(grpccore::CallInvoker callInvo /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// /// Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey] to update. @@ -4530,7 +4539,8 @@ public override AsymmetricDecryptResponse AsymmetricDecrypt(AsymmetricDecryptReq /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. @@ -4544,7 +4554,8 @@ public override CryptoKey UpdateCryptoKeyPrimaryVersion(UpdateCryptoKeyPrimaryVe /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request object containing all of the parameters for the API call. /// If not null, applies overrides to this RPC call. diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs index 1b4789763cf2..b3eb229e2089 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/Resources.g.cs @@ -60,7 +60,7 @@ public static partial class ResourcesReflection { "YXRpb25Gb3JtYXRCA+BBAxIUCgdjb250ZW50GAUgASgMQgPgQQMiawoRQXR0", "ZXN0YXRpb25Gb3JtYXQSIgoeQVRURVNUQVRJT05fRk9STUFUX1VOU1BFQ0lG", "SUVEEAASGAoUQ0FWSVVNX1YxX0NPTVBSRVNTRUQQAxIYChRDQVZJVU1fVjJf", - "Q09NUFJFU1NFRBAEIooOChBDcnlwdG9LZXlWZXJzaW9uEhEKBG5hbWUYASAB", + "Q09NUFJFU1NFRBAEIqgOChBDcnlwdG9LZXlWZXJzaW9uEhEKBG5hbWUYASAB", "KAlCA+BBAxJKCgVzdGF0ZRgDIAEoDjI7Lmdvb2dsZS5jbG91ZC5rbXMudjEu", "Q3J5cHRvS2V5VmVyc2lvbi5DcnlwdG9LZXlWZXJzaW9uU3RhdGUSQwoQcHJv", "dGVjdGlvbl9sZXZlbBgHIAEoDjIkLmdvb2dsZS5jbG91ZC5rbXMudjEuUHJv", @@ -77,7 +77,7 @@ public static partial class ResourcesReflection { "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEiIKFWltcG9ydF9m", "YWlsdXJlX3JlYXNvbhgQIAEoCUID4EEDEl4KIWV4dGVybmFsX3Byb3RlY3Rp", "b25fbGV2ZWxfb3B0aW9ucxgRIAEoCzIzLmdvb2dsZS5jbG91ZC5rbXMudjEu", - "RXh0ZXJuYWxQcm90ZWN0aW9uTGV2ZWxPcHRpb25zIr8EChlDcnlwdG9LZXlW", + "RXh0ZXJuYWxQcm90ZWN0aW9uTGV2ZWxPcHRpb25zIt0EChlDcnlwdG9LZXlW", "ZXJzaW9uQWxnb3JpdGhtEiwKKENSWVBUT19LRVlfVkVSU0lPTl9BTEdPUklU", "SE1fVU5TUEVDSUZJRUQQABIfChtHT09HTEVfU1lNTUVUUklDX0VOQ1JZUFRJ", "T04QARIcChhSU0FfU0lHTl9QU1NfMjA0OF9TSEEyNTYQAhIcChhSU0FfU0lH", @@ -89,55 +89,55 @@ public static partial class ResourcesReflection { "RVBfMjA0OF9TSEEyNTYQCBIgChxSU0FfREVDUllQVF9PQUVQXzMwNzJfU0hB", "MjU2EAkSIAocUlNBX0RFQ1JZUFRfT0FFUF80MDk2X1NIQTI1NhAKEiAKHFJT", "QV9ERUNSWVBUX09BRVBfNDA5Nl9TSEE1MTIQERIXChNFQ19TSUdOX1AyNTZf", - "U0hBMjU2EAwSFwoTRUNfU0lHTl9QMzg0X1NIQTM4NBANEiEKHUVYVEVSTkFM", - "X1NZTU1FVFJJQ19FTkNSWVBUSU9OEBIiwQEKFUNyeXB0b0tleVZlcnNpb25T", - "dGF0ZRIoCiRDUllQVE9fS0VZX1ZFUlNJT05fU1RBVEVfVU5TUEVDSUZJRUQQ", - "ABIWChJQRU5ESU5HX0dFTkVSQVRJT04QBRILCgdFTkFCTEVEEAESDAoIRElT", - "QUJMRUQQAhINCglERVNUUk9ZRUQQAxIVChFERVNUUk9ZX1NDSEVEVUxFRBAE", - "EhIKDlBFTkRJTkdfSU1QT1JUEAYSEQoNSU1QT1JUX0ZBSUxFRBAHIkkKFENy", - "eXB0b0tleVZlcnNpb25WaWV3EicKI0NSWVBUT19LRVlfVkVSU0lPTl9WSUVX", - "X1VOU1BFQ0lGSUVEEAASCAoERlVMTBABOqoB6kGmAQooY2xvdWRrbXMuZ29v", - "Z2xlYXBpcy5jb20vQ3J5cHRvS2V5VmVyc2lvbhJ6cHJvamVjdHMve3Byb2pl", - "Y3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2tleVJpbmdzL3trZXlfcmluZ30v", - "Y3J5cHRvS2V5cy97Y3J5cHRvX2tleX0vY3J5cHRvS2V5VmVyc2lvbnMve2Ny", - "eXB0b19rZXlfdmVyc2lvbn0i3AIKCVB1YmxpY0tleRILCgNwZW0YASABKAkS", - "UgoJYWxnb3J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UID4EED", + "EkYKC2F0dGVzdGF0aW9uGAggASgLMiwuZ29vZ2xlLmNsb3VkLmttcy52MS5L", + "ZXlPcGVyYXRpb25BdHRlc3RhdGlvbkID4EEDGiAKEVdyYXBwaW5nUHVibGlj", + "S2V5EgsKA3BlbRgBIAEoCSJtCgxJbXBvcnRNZXRob2QSHQoZSU1QT1JUX01F", + "VEhPRF9VTlNQRUNJRklFRBAAEh4KGlJTQV9PQUVQXzMwNzJfU0hBMV9BRVNf", + "MjU2EAESHgoaUlNBX09BRVBfNDA5Nl9TSEExX0FFU18yNTYQAiJjCg5JbXBv", + "cnRKb2JTdGF0ZRIgChxJTVBPUlRfSk9CX1NUQVRFX1VOU1BFQ0lGSUVEEAAS", + "FgoSUEVORElOR19HRU5FUkFUSU9OEAESCgoGQUNUSVZFEAISCwoHRVhQSVJF", + "RBADOnvqQXgKIWNsb3Vka21zLmdvb2dsZWFwaXMuY29tL0ltcG9ydEpvYhJT", + "cHJvamVjdHMve3Byb2plY3R9L2xvY2F0aW9ucy97bG9jYXRpb259L2tleVJp", + "bmdzL3trZXlfcmluZ30vaW1wb3J0Sm9icy97aW1wb3J0X2pvYn0iOgoeRXh0", + "ZXJuYWxQcm90ZWN0aW9uTGV2ZWxPcHRpb25zEhgKEGV4dGVybmFsX2tleV91", + "cmkYASABKAkqWAoPUHJvdGVjdGlvbkxldmVsEiAKHFBST1RFQ1RJT05fTEVW", + "RUxfVU5TUEVDSUZJRUQQABIMCghTT0ZUV0FSRRABEgcKA0hTTRACEgwKCEVY", + "VEVSTkFMEANClQEKF2NvbS5nb29nbGUuY2xvdWQua21zLnYxQhFLbXNSZXNv", + "dXJjZXNQcm90b1ABWjZnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", + "bGVhcGlzL2Nsb3VkL2ttcy92MTtrbXP4AQGqAhNHb29nbGUuQ2xvdWQuS21z", + "LlYxygITR29vZ2xlXENsb3VkXEttc1xWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Cloud.Kms.V1.ProtectionLevel), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -2315,6 +2315,11 @@ public enum CryptoKeyVersionAlgorithm { /// [pbr::OriginalName("EC_SIGN_P384_SHA384")] EcSignP384Sha384 = 13, /// + /// ECDSA on the non-NIST secp256k1 curve. This curve is only supported for + /// HSM protection level. + /// + [pbr::OriginalName("EC_SIGN_SECP256K1_SHA256")] EcSignSecp256K1Sha256 = 31, + /// /// Algorithm representing symmetric encryption by an external key manager. /// [pbr::OriginalName("EXTERNAL_SYMMETRIC_ENCRYPTION")] ExternalSymmetricEncryption = 18, diff --git a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/ServiceGrpc.g.cs b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/ServiceGrpc.g.cs index 0c99d0422b24..f0ac2c5f0280 100644 --- a/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/ServiceGrpc.g.cs +++ b/apis/Google.Cloud.Kms.V1/Google.Cloud.Kms.V1/ServiceGrpc.g.cs @@ -3,7 +3,7 @@ // source: google/cloud/kms/v1/service.proto // // Original file comments: -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -533,7 +533,8 @@ public abstract partial class KeyManagementServiceBase /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request received from the client. /// The context of the server-side call handler being invoked. @@ -1614,7 +1615,8 @@ protected KeyManagementServiceClient(ClientBaseConfiguration configuration) : ba /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1628,7 +1630,8 @@ protected KeyManagementServiceClient(ClientBaseConfiguration configuration) : ba /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request to send to the server. /// The options for the call. @@ -1640,7 +1643,8 @@ protected KeyManagementServiceClient(ClientBaseConfiguration configuration) : ba /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. @@ -1654,7 +1658,8 @@ protected KeyManagementServiceClient(ClientBaseConfiguration configuration) : ba /// /// Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. /// - /// Returns an error if called on an asymmetric key. + /// Returns an error if called on a key whose purpose is not + /// [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT]. /// /// The request to send to the server. /// The options for the call. diff --git a/apis/Google.Cloud.Kms.V1/synth.metadata b/apis/Google.Cloud.Kms.V1/synth.metadata index b1ec11be9d6d..f4efcd0bad36 100644 --- a/apis/Google.Cloud.Kms.V1/synth.metadata +++ b/apis/Google.Cloud.Kms.V1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a1ab4d44db02d59ff58810c6d4182d84e4b9abaa" + "sha": "8d1d6694519ed9a1195067cd2138376ac1389883" } } ]