Full name: projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt
Decrypts data that was encrypted with a public key retrieved from cryptoKeyVersions.getPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_DECRYPT.
HTTP request
POST https://cloudkms.googleapis.com/v1/{name=projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*}:asymmetricDecrypt 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, "ciphertextCrc32c": string } |
| Fields | |
|---|---|
ciphertext |
Required. The data encrypted with the named A base64-encoded string. |
ciphertextCrc32c |
Optional. An optional CRC32C checksum of the |
Response body
Response message for KeyManagementService.AsymmetricDecrypt.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"plaintext": string,
"plaintextCrc32c": string,
"verifiedCiphertextCrc32c": boolean,
"protectionLevel": enum ( |
| Fields | |
|---|---|
plaintext |
The decrypted data originally encrypted with the matching public key. A base64-encoded string. |
plaintextCrc32c |
Integrity verification field. A CRC32C checksum of the returned |
verifiedCiphertextCrc32c |
Integrity verification field. A flag indicating whether |
protectionLevel |
The |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloudkmshttps://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.