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