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
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. |
ciphertext |
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. |
plaintext |
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.