Key Management Service API, gRPC: AsymmetricEncryptionCryptoService
Written by
Updated at August 30, 2023
Set of methods that perform asymmetric decryption.
Call | Description |
---|---|
Decrypt | Decrypts the given ciphertext with the specified key. |
GetPublicKey | Gets value of public key. |
Calls AsymmetricEncryptionCryptoService
Decrypt
Decrypts the given ciphertext with the specified key.
rpc Decrypt (AsymmetricDecryptRequest) returns (AsymmetricDecryptResponse)
AsymmetricDecryptRequest
Field | Description |
---|---|
key_id | string Required. ID of the asymmetric KMS key to use for decryption. The maximum string length in characters is 50. |
ciphertext | bytes Required. Ciphertext to be decrypted. Should be encoded with base64. The maximum string length in characters is 32768. |
AsymmetricDecryptResponse
Field | Description |
---|---|
key_id | string ID of the asymmetric KMS key that was used for decryption. |
plaintext | bytes Decrypted plaintext. |
GetPublicKey
Gets value of public key.
rpc GetPublicKey (AsymmetricGetPublicKeyRequest) returns (AsymmetricGetPublicKeyResponse)
AsymmetricGetPublicKeyRequest
Field | Description |
---|---|
key_id | string Required. ID of the asymmetric KMS key to be used for public key retrieval. The maximum string length in characters is 50. |
AsymmetricGetPublicKeyResponse
Field | Description |
---|---|
key_id | string ID of the asymmetric KMS key to get public key of. |
public_key | string Public key value. The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI), as defined in RFC 5280. |