@@ -869,7 +869,7 @@ class AsymmetricSignRequest(proto.Message):
869
869
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to
870
870
use for signing.
871
871
digest (google.cloud.kms_v1.types.Digest):
872
- Required . The digest of the data to sign. The digest must be
872
+ Optional . The digest of the data to sign. The digest must be
873
873
produced with the same digest algorithm as specified by the
874
874
key version's
875
875
[algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
@@ -894,13 +894,41 @@ class AsymmetricSignRequest(proto.Message):
894
894
However, it is a non-negative integer, which will never
895
895
exceed 2^32-1, and can be safely downconverted to uint32 in
896
896
languages that support this type.
897
+ data (bytes):
898
+ Optional. This field will only be honored for RAW_PKCS1
899
+ keys. The data to sign. A digest is computed over the data
900
+ that will be signed, PKCS #1 padding is applied to the
901
+ digest directly and then encrypted.
902
+ data_crc32c (google.protobuf.wrappers_pb2.Int64Value):
903
+ Optional. An optional CRC32C checksum of the
904
+ [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
905
+ If specified,
906
+ [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
907
+ will verify the integrity of the received
908
+ [AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data]
909
+ using this checksum.
910
+ [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
911
+ will report an error if the checksum verification fails. If
912
+ you receive a checksum error, your client should verify that
913
+ CRC32C([AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data])
914
+ is equal to
915
+ [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c],
916
+ and if so, perform a limited number of retries. A persistent
917
+ mismatch may indicate an issue in your computation of the
918
+ CRC32C checksum. Note: This field is defined as int64 for
919
+ reasons of compatibility across different languages.
920
+ However, it is a non-negative integer, which will never
921
+ exceed 2^32-1, and can be safely downconverted to uint32 in
922
+ languages that support this type.
897
923
"""
898
924
899
925
name = proto .Field (proto .STRING , number = 1 ,)
900
926
digest = proto .Field (proto .MESSAGE , number = 3 , message = "Digest" ,)
901
927
digest_crc32c = proto .Field (
902
928
proto .MESSAGE , number = 4 , message = wrappers_pb2 .Int64Value ,
903
929
)
930
+ data = proto .Field (proto .BYTES , number = 6 ,)
931
+ data_crc32c = proto .Field (proto .MESSAGE , number = 7 , message = wrappers_pb2 .Int64Value ,)
904
932
905
933
906
934
class AsymmetricDecryptRequest (proto .Message ):
@@ -1250,6 +1278,21 @@ class AsymmetricSignResponse(proto.Message):
1250
1278
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
1251
1279
used for signing. Check this field to verify that the
1252
1280
intended resource was used for signing.
1281
+ verified_data_crc32c (bool):
1282
+ Integrity verification field. A flag indicating whether
1283
+ [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
1284
+ was received by
1285
+ [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
1286
+ and used for the integrity verification of the
1287
+ [data][google.cloud.kms.v1.AsymmetricSignRequest.data]. A
1288
+ false value of this field indicates either that
1289
+ [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
1290
+ was left unset or that it was not delivered to
1291
+ [KeyManagementService][google.cloud.kms.v1.KeyManagementService].
1292
+ If you've set
1293
+ [AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c]
1294
+ but this field is still false, discard the response and
1295
+ perform a limited number of retries.
1253
1296
protection_level (google.cloud.kms_v1.types.ProtectionLevel):
1254
1297
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel]
1255
1298
of the
@@ -1263,6 +1306,7 @@ class AsymmetricSignResponse(proto.Message):
1263
1306
)
1264
1307
verified_digest_crc32c = proto .Field (proto .BOOL , number = 3 ,)
1265
1308
name = proto .Field (proto .STRING , number = 4 ,)
1309
+ verified_data_crc32c = proto .Field (proto .BOOL , number = 5 ,)
1266
1310
protection_level = proto .Field (
1267
1311
proto .ENUM , number = 6 , enum = resources .ProtectionLevel ,
1268
1312
)
0 commit comments