Key Management Service API, gRPC: SymmetricCryptoService.Decrypt
Written by
Updated at October 17, 2024
Decrypts the given ciphertext with the specified key.
gRPC request
rpc Decrypt (SymmetricDecryptRequest) returns (SymmetricDecryptResponse)
SymmetricDecryptRequest
{
"keyId": "string",
"aadContext": "bytes",
"ciphertext": "bytes"
}
Field |
Description |
keyId |
string Required field. ID of the symmetric KMS key to use for decryption. |
aadContext |
bytes Additional authenticated data, must be the same as was provided |
ciphertext |
bytes Required field. Ciphertext to be decrypted. |
SymmetricDecryptResponse
{
"keyId": "string",
"versionId": "string",
"plaintext": "bytes"
}
Field |
Description |
keyId |
string ID of the symmetric KMS key that was used for decryption. |
versionId |
string ID of the key version that was used for decryption. |
plaintext |
bytes Decrypted plaintext. |