Key Management Service API, gRPC: AsymmetricEncryptionCryptoService.Decrypt
Статья создана
Обновлена 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. |