Key Management Service API, gRPC: AsymmetricEncryptionCryptoService.Decrypt
Written by
Updated at November 26, 2024
Decrypts the given ciphertext with the specified key.
gRPC request
rpc Decrypt (AsymmetricDecryptRequest) returns (AsymmetricDecryptResponse)
AsymmetricDecryptRequest
{
"key_id": "string",
"ciphertext": "bytes"
}
Field |
Description |
key_id |
string Required field. ID of the asymmetric KMS key to use for decryption. |
ciphertext |
bytes Required field. Ciphertext to be decrypted. |
AsymmetricDecryptResponse
{
"key_id": "string",
"plaintext": "bytes"
}
Field |
Description |
key_id |
string ID of the asymmetric KMS key that was used for decryption. |
plaintext |
bytes Decrypted plaintext. |