Wrap a key (KMS)
crypto_kms_wrapWrap a symmetric-256 Data Encryption Key (DEK) handle under a KMS-held Key Encryption Key; the local provider uses in-process key material.
Instructions
Wrap the Data Encryption Key (DEK) a symmetric-256 key handle refers to under a Key Encryption Key held by a KMS provider. Only the 'local' provider is configured.
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>",
"keyHandle": "<keyHandle>"
},
"name": "crypto_kms_wrap"
}
}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. | |
| keyHandle | Yes | Handle of the symmetric-256 DEK to wrap. Key handles look like 'kh_' followed by 32 hex characters. |