Full name: projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawDecrypt
Decrypts data that was originally encrypted using a raw cryptographic mechanism. The CryptoKey.purpose
must be RAW_ENCRYPT_DECRYPT
.
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 |
---|
{ "ciphertext": string, "additionalAuthenticatedData": string, "initializationVector": string, "tagLength": integer, "ciphertextCrc32c": string, "additionalAuthenticatedDataCrc32c": string, "initializationVectorCrc32c": string } |
Fields | |
---|---|
ciphertext |
Required. The encrypted data originally returned in A base64-encoded string. |
additional |
Optional. Optional data that must match the data originally supplied in A base64-encoded string. |
initialization |
Required. The initialization vector (IV) used during encryption, which must match the data originally provided in A base64-encoded string. |
tag |
The length of the authentication tag that is appended to the end of the ciphertext. If unspecified (0), the default value for the key's algorithm will be used (for AES-GCM, the default value is 16). |
ciphertext |
Optional. An optional CRC32C checksum of the |
additional |
Optional. An optional CRC32C checksum of the |
initialization |
Optional. An optional CRC32C checksum of the |
Response body
Response message for KeyManagementService.RawDecrypt
.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"plaintext": string,
"plaintextCrc32c": string,
"protectionLevel": enum ( |
Fields | |
---|---|
plaintext |
The decrypted data. A base64-encoded string. |
plaintext |
Integrity verification field. A CRC32C checksum of the returned |
protection |
The |
verified |
Integrity verification field. A flag indicating whether |
verified |
Integrity verification field. A flag indicating whether |
verified |
Integrity verification field. A flag indicating whether |
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.