Unwrap a key (KMS)
crypto_kms_unwrapUnwrap a previously wrapped data encryption key (DEK) into a symmetric-256 key handle for in-process use; secret material remains server-side and only an opaque handle is returned.
Instructions
Unwrap a DEK previously wrapped by crypto_kms_wrap in this server process into a symmetric-256 key handle. Only the 'local' provider is configured. Secret key material stays inside the server; only an opaque keyHandle is returned.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider": "<provider>",
"keyId": "<keyId>",
"wrappedKey": "<wrappedKey>"
},
"name": "crypto_kms_unwrap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyId | Yes | Label of the Key Encryption Key (KEK). It names the key; it is never used to derive it. | |
| provider | Yes | KMS provider ('aws', 'gcp', 'azure', 'vault', or 'local'). Only 'local' (random, in-process key material that does not survive a restart) is configured; the others return an error. | |
| wrappedKey | Yes | Hex-encoded wrapped key payload. |