Key Management Service API, gRPC: SymmetricCryptoService.Decrypt
Статья создана
Обновлена 26 ноября 2024 г.
Decrypts the given ciphertext with the specified key.
gRPC request
rpc Decrypt (SymmetricDecryptRequest) returns (SymmetricDecryptResponse)
SymmetricDecryptRequest
{
"key_id": "string",
"aad_context": "bytes",
"ciphertext": "bytes"
}
Field |
Description |
key_id |
string Required field. ID of the symmetric KMS key to use for decryption. |
aad_context |
bytes Additional authenticated data, must be the same as was provided |
ciphertext |
bytes Required field. Ciphertext to be decrypted. |
SymmetricDecryptResponse
{
"key_id": "string",
"version_id": "string",
"plaintext": "bytes"
}
Field |
Description |
key_id |
string ID of the symmetric KMS key that was used for decryption. |
version_id |
string ID of the key version that was used for decryption. |
plaintext |
bytes Decrypted plaintext. |