public sealed class AsymmetricSignRequest : IMessage<AsymmetricSignRequest>, IEquatable<AsymmetricSignRequest>, IDeepCloneable<AsymmetricSignRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class AsymmetricSignRequest.
Request message for
[KeyManagementService.AsymmetricSign][google.cloud.kms.v1.KeyManagementService.AsymmetricSign].
Optional. An optional CRC32C checksum of the
[AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data].
If specified,
[KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
verify the integrity of the received
[AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data]
using this checksum.
[KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
report an error if the checksum verification fails. If you receive a
checksum error, your client should verify that
CRC32C([AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data])
is equal to
[AsymmetricSignRequest.data_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c],
and if so, perform a limited number of retries. A persistent mismatch may
indicate an issue in your computation of the CRC32C checksum. Note: This
field is defined as int64 for reasons of compatibility across different
languages. However, it is a non-negative integer, which will never exceed
2^32-1, and can be safely downconverted to uint32 in languages that support
this type.
Property Value
Type
Description
System.Int64
Digest
public Digest Digest { get; set; }
Optional. The digest of the data to sign. The digest must be produced with
the same digest algorithm as specified by the key version's
[algorithm][google.cloud.kms.v1.CryptoKeyVersion.algorithm].
This field may not be supplied if
[AsymmetricSignRequest.data][google.cloud.kms.v1.AsymmetricSignRequest.data]
is supplied.
Optional. An optional CRC32C checksum of the
[AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest].
If specified,
[KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
verify the integrity of the received
[AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest]
using this checksum.
[KeyManagementService][google.cloud.kms.v1.KeyManagementService] will
report an error if the checksum verification fails. If you receive a
checksum error, your client should verify that
CRC32C([AsymmetricSignRequest.digest][google.cloud.kms.v1.AsymmetricSignRequest.digest])
is equal to
[AsymmetricSignRequest.digest_crc32c][google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c],
and if so, perform a limited number of retries. A persistent mismatch may
indicate an issue in your computation of the CRC32C checksum. Note: This
field is defined as int64 for reasons of compatibility across different
languages. However, it is a non-negative integer, which will never exceed
2^32-1, and can be safely downconverted to uint32 in languages that support
this type.
Property Value
Type
Description
System.Int64
Name
public string Name { get; set; }
Required. The resource name of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] to use for
signing.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eAsymmetricSignRequest\u003c/code\u003e class within the Google Cloud Key Management Service (KMS) v1 API for .NET, including its implementation details and version history.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAsymmetricSignRequest\u003c/code\u003e class is used to make requests for the \u003ccode\u003eKeyManagementService.AsymmetricSign\u003c/code\u003e function and inherits from \u003ccode\u003eobject\u003c/code\u003e, implementing several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists available versions of the API, ranging from the latest \u003ccode\u003e3.16.0\u003c/code\u003e down to \u003ccode\u003e2.2.0\u003c/code\u003e, each providing a link to the respective documentation for the \u003ccode\u003eAsymmetricSignRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eAsymmetricSignRequest\u003c/code\u003e class include \u003ccode\u003eCryptoKeyVersionName\u003c/code\u003e, \u003ccode\u003eData\u003c/code\u003e, \u003ccode\u003eDataCrc32C\u003c/code\u003e, \u003ccode\u003eDigest\u003c/code\u003e, \u003ccode\u003eDigestCrc32C\u003c/code\u003e, and \u003ccode\u003eName\u003c/code\u003e, detailing the necessary parameters for signing data or a digest, alongside checksum options for integrity verification.\u003c/p\u003e\n"],["\u003cp\u003eConstructors for the class include a default empty constructor and another that accepts an \u003ccode\u003eAsymmetricSignRequest\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Key Management Service v1 API - Class AsymmetricSignRequest (3.18.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.18.0 (latest)](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.17.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.16.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.15.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.14.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.13.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.12.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.11.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.10.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.9.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.8.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.7.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.6.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.5.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.4.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.3.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.2.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.1.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.0.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.9.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.8.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.7.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.6.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.5.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.4.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.3.0/Google.Cloud.Kms.V1.AsymmetricSignRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.2.0/Google.Cloud.Kms.V1.AsymmetricSignRequest) \n\n public sealed class AsymmetricSignRequest : IMessage\u003cAsymmetricSignRequest\u003e, IEquatable\u003cAsymmetricSignRequest\u003e, IDeepCloneable\u003cAsymmetricSignRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Key Management Service v1 API class AsymmetricSignRequest.\n\nRequest message for\n\\[KeyManagementService.AsymmetricSign\\]\\[google.cloud.kms.v1.KeyManagementService.AsymmetricSign\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AsymmetricSignRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AsymmetricSignRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AsymmetricSignRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AsymmetricSignRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AsymmetricSignRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AsymmetricSignRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AsymmetricSignRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Kms.V1](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Kms.V1.dll\n\nConstructors\n------------\n\n### AsymmetricSignRequest()\n\n public AsymmetricSignRequest()\n\n### AsymmetricSignRequest(AsymmetricSignRequest)\n\n public AsymmetricSignRequest(AsymmetricSignRequest other)\n\nProperties\n----------\n\n### CryptoKeyVersionName\n\n public CryptoKeyVersionName CryptoKeyVersionName { get; set; }\n\n[CryptoKeyVersionName](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CryptoKeyVersionName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.AsymmetricSignRequest#Google_Cloud_Kms_V1_AsymmetricSignRequest_Name) resource name property.\n\n### Data\n\n public ByteString Data { get; set; }\n\nOptional. The data to sign.\nIt can't be supplied if\n\\[AsymmetricSignRequest.digest\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.digest\\]\nis supplied.\n\n### DataCrc32C\n\n public long? DataCrc32C { get; set; }\n\nOptional. An optional CRC32C checksum of the\n\\[AsymmetricSignRequest.data\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.data\\].\nIf specified,\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\] will\nverify the integrity of the received\n\\[AsymmetricSignRequest.data\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.data\\]\nusing this checksum.\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\] will\nreport an error if the checksum verification fails. If you receive a\nchecksum error, your client should verify that\nCRC32C(\\[AsymmetricSignRequest.data\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.data\\])\nis equal to\n\\[AsymmetricSignRequest.data_crc32c\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.data_crc32c\\],\nand if so, perform a limited number of retries. A persistent mismatch may\nindicate an issue in your computation of the CRC32C checksum. Note: This\nfield is defined as int64 for reasons of compatibility across different\nlanguages. However, it is a non-negative integer, which will never exceed\n2\\^32-1, and can be safely downconverted to uint32 in languages that support\nthis type.\n\n### Digest\n\n public Digest Digest { get; set; }\n\nOptional. The digest of the data to sign. The digest must be produced with\nthe same digest algorithm as specified by the key version's\n\\[algorithm\\]\\[google.cloud.kms.v1.CryptoKeyVersion.algorithm\\].\n\nThis field may not be supplied if\n\\[AsymmetricSignRequest.data\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.data\\]\nis supplied.\n\n### DigestCrc32C\n\n public long? DigestCrc32C { get; set; }\n\nOptional. An optional CRC32C checksum of the\n\\[AsymmetricSignRequest.digest\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.digest\\].\nIf specified,\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\] will\nverify the integrity of the received\n\\[AsymmetricSignRequest.digest\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.digest\\]\nusing this checksum.\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\] will\nreport an error if the checksum verification fails. If you receive a\nchecksum error, your client should verify that\nCRC32C(\\[AsymmetricSignRequest.digest\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.digest\\])\nis equal to\n\\[AsymmetricSignRequest.digest_crc32c\\]\\[google.cloud.kms.v1.AsymmetricSignRequest.digest_crc32c\\],\nand if so, perform a limited number of retries. A persistent mismatch may\nindicate an issue in your computation of the CRC32C checksum. Note: This\nfield is defined as int64 for reasons of compatibility across different\nlanguages. However, it is a non-negative integer, which will never exceed\n2\\^32-1, and can be safely downconverted to uint32 in languages that support\nthis type.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The resource name of the\n\\[CryptoKeyVersion\\]\\[google.cloud.kms.v1.CryptoKeyVersion\\] to use for\nsigning."]]