public sealed class MacSignResponse : IMessage<MacSignResponse>, IEquatable<MacSignResponse>, IDeepCloneable<MacSignResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class MacSignResponse.
Response message for
[KeyManagementService.MacSign][google.cloud.kms.v1.KeyManagementService.MacSign].
Integrity verification field. A CRC32C checksum of the returned
[MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac]. An
integrity check of
[MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] can be
performed by computing the CRC32C checksum of
[MacSignResponse.mac][google.cloud.kms.v1.MacSignResponse.mac] and
comparing your results to this field. Discard the response in case of
non-matching checksum values, and 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; }
The resource name of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for signing.
Check this field to verify that the intended resource was used for signing.
Integrity verification field. A flag indicating whether
[MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c]
was received by
[KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
for the integrity verification of the
[data][google.cloud.kms.v1.MacSignRequest.data]. A false value of this
field indicates either that
[MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c]
was left unset or that it was not delivered to
[KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
set
[MacSignRequest.data_crc32c][google.cloud.kms.v1.MacSignRequest.data_crc32c]
but this field is still false, discard the response and perform a limited
number of retries.
[[["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 documentation for the \u003ccode\u003eMacSignResponse\u003c/code\u003e class within the Google Cloud Key Management Service v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eMacSignResponse\u003c/code\u003e is 3.16.0, but documentation is available for versions from 2.2.0 up to the latest.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMacSignResponse\u003c/code\u003e is a message used to receive responses from the \u003ccode\u003eKeyManagementService.MacSign\u003c/code\u003e method, and implements interfaces like \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\u003eKey properties of the \u003ccode\u003eMacSignResponse\u003c/code\u003e class include \u003ccode\u003eMac\u003c/code\u003e (the signature), \u003ccode\u003eMacCrc32C\u003c/code\u003e (integrity checksum of the signature), \u003ccode\u003eName\u003c/code\u003e (resource name of the key version), \u003ccode\u003eProtectionLevel\u003c/code\u003e (security level of the key version), and \u003ccode\u003eVerifiedDataCrc32C\u003c/code\u003e (data integrity verification status).\u003c/p\u003e\n"],["\u003cp\u003eThe provided content outlines the constructors available, along with the description for the parameters and return type.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Key Management Service v1 API - Class MacSignResponse (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.MacSignResponse)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.17.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.16.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.15.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.14.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.13.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.12.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.11.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.10.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.9.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.8.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.7.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.6.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.5.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.4.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.3.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.2.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.1.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.0.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.9.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.8.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.7.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.6.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.5.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.4.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.3.0/Google.Cloud.Kms.V1.MacSignResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.2.0/Google.Cloud.Kms.V1.MacSignResponse) \n\n public sealed class MacSignResponse : IMessage\u003cMacSignResponse\u003e, IEquatable\u003cMacSignResponse\u003e, IDeepCloneable\u003cMacSignResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Key Management Service v1 API class MacSignResponse.\n\nResponse message for\n\\[KeyManagementService.MacSign\\]\\[google.cloud.kms.v1.KeyManagementService.MacSign\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MacSignResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MacSignResponse](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.MacSignResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MacSignResponse](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.MacSignResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MacSignResponse](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.MacSignResponse), [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### MacSignResponse()\n\n public MacSignResponse()\n\n### MacSignResponse(MacSignResponse)\n\n public MacSignResponse(MacSignResponse other)\n\nProperties\n----------\n\n### Mac\n\n public ByteString Mac { get; set; }\n\nThe created signature.\n\n### MacCrc32C\n\n public long? MacCrc32C { get; set; }\n\nIntegrity verification field. A CRC32C checksum of the returned\n\\[MacSignResponse.mac\\]\\[google.cloud.kms.v1.MacSignResponse.mac\\]. An\nintegrity check of\n\\[MacSignResponse.mac\\]\\[google.cloud.kms.v1.MacSignResponse.mac\\] can be\nperformed by computing the CRC32C checksum of\n\\[MacSignResponse.mac\\]\\[google.cloud.kms.v1.MacSignResponse.mac\\] and\ncomparing your results to this field. Discard the response in case of\nnon-matching checksum values, and perform a limited number of retries. A\npersistent mismatch may indicate an issue in your computation of the CRC32C\nchecksum. Note: This field is defined as int64 for reasons of compatibility\nacross different languages. However, it is a non-negative integer, which\nwill never exceed 2\\^32-1, and can be safely downconverted to uint32 in\nlanguages that support this type.\n\n### Name\n\n public string Name { get; set; }\n\nThe resource name of the\n\\[CryptoKeyVersion\\]\\[google.cloud.kms.v1.CryptoKeyVersion\\] used for signing.\nCheck this field to verify that the intended resource was used for signing.\n\n### ProtectionLevel\n\n public ProtectionLevel ProtectionLevel { get; set; }\n\nThe \\[ProtectionLevel\\]\\[google.cloud.kms.v1.ProtectionLevel\\] of the\n\\[CryptoKeyVersion\\]\\[google.cloud.kms.v1.CryptoKeyVersion\\] used for signing.\n\n### VerifiedDataCrc32C\n\n public bool VerifiedDataCrc32C { get; set; }\n\nIntegrity verification field. A flag indicating whether\n\\[MacSignRequest.data_crc32c\\]\\[google.cloud.kms.v1.MacSignRequest.data_crc32c\\]\nwas received by\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\] and used\nfor the integrity verification of the\n\\[data\\]\\[google.cloud.kms.v1.MacSignRequest.data\\]. A false value of this\nfield indicates either that\n\\[MacSignRequest.data_crc32c\\]\\[google.cloud.kms.v1.MacSignRequest.data_crc32c\\]\nwas left unset or that it was not delivered to\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\]. If you've\nset\n\\[MacSignRequest.data_crc32c\\]\\[google.cloud.kms.v1.MacSignRequest.data_crc32c\\]\nbut this field is still false, discard the response and perform a limited\nnumber of retries."]]