Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Key Management Service
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Encrypt
        • Decrypt
        • ReEncrypt
        • GenerateDataKey
  • Monitoring metrics
  • Audit Trails events
  • FAQ

In this article:

  • gRPC request
  • SymmetricDecryptRequest
  • SymmetricDecryptResponse
  1. API reference
  2. gRPC
  3. SymmetricCrypto
  4. Decrypt

Key Management Service API, gRPC: SymmetricCryptoService.Decrypt

Written by
Yandex Cloud
Updated at November 26, 2024
  • gRPC request
  • SymmetricDecryptRequest
  • SymmetricDecryptResponse

Decrypts the given ciphertext with the specified key.

gRPC requestgRPC request

rpc Decrypt (SymmetricDecryptRequest) returns (SymmetricDecryptResponse)

SymmetricDecryptRequestSymmetricDecryptRequest

{
  "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
in the corresponding SymmetricEncryptRequest.
Should be encoded with base64.

ciphertext

bytes

Required field. Ciphertext to be decrypted.
Should be encoded with base64.

SymmetricDecryptResponseSymmetricDecryptResponse

{
  "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.

Was the article helpful?

Previous
Encrypt
Next
ReEncrypt
Yandex project
© 2025 Yandex.Cloud LLC