Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Key Management Service
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
          • Overview
          • Sign
          • SignHash
          • GetPublicKey
  • Monitoring metrics
  • Audit Trails events
  • FAQ

In this article:

  • gRPC request
  • AsymmetricSignHashRequest
  • AsymmetricSignHashResponse
  1. API reference
  2. gRPC
  3. Key Management Service API
  4. AsymmetricSignatureCrypto
  5. SignHash

Key Management Service API, gRPC: AsymmetricSignatureCryptoService.SignHash

Written by
Yandex Cloud
Updated at December 9, 2025
  • gRPC request
  • AsymmetricSignHashRequest
  • AsymmetricSignHashResponse

Signs hash value specified KMS key.

gRPC requestgRPC request

rpc SignHash (AsymmetricSignHashRequest) returns (AsymmetricSignHashResponse)

AsymmetricSignHashRequestAsymmetricSignHashRequest

{
  "key_id": "string",
  "hash": "bytes"
}

Field

Description

key_id

string

Required field. ID of the asymmetric KMS key to use for signature.

The maximum string length in characters is 50.

hash

bytes

Required field. Hash value to be signed.
Should be encoded with base64.

The maximum string length in characters is 4096.

AsymmetricSignHashResponseAsymmetricSignHashResponse

{
  "key_id": "string",
  "signature": "bytes"
}

Field

Description

key_id

string

ID of the asymmetric KMS key that was used for signature.

signature

bytes

Value of signature.
Signature value is produced in accordance with RFC 8017 for RSA
and is a DER-encoded object as defined by ANSI X9.62-2005 and RFC 3279 Section 2.2.3 for ECDSA.

Was the article helpful?

Previous
Sign
Next
GetPublicKey
© 2025 Direct Cursus Technology L.L.C.