Full name: projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macSign
Signs data using a CryptoKeyVersion
with CryptoKey.purpose
MAC, producing a tag that can be verified by another source with the same key.
HTTP request
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The resource name of the Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "data": string, "dataCrc32c": string } |
Fields | |
---|---|
data |
Required. The data to sign. The MAC tag is computed over this data field based on the specific algorithm. A base64-encoded string. |
data |
Optional. An optional CRC32C checksum of the |
Response body
Response message for KeyManagementService.MacSign
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"name": string,
"mac": string,
"macCrc32c": string,
"verifiedDataCrc32c": boolean,
"protectionLevel": enum ( |
Fields | |
---|---|
name |
The resource name of the |
mac |
The created signature. A base64-encoded string. |
mac |
Integrity verification field. A CRC32C checksum of the returned |
verified |
Integrity verification field. A flag indicating whether |
protection |
The |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloudkms
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.