Decrypt data
crypto_decryptDecrypts and authenticates AES-256-GCM or ChaCha20-Poly1305 ciphertext with a symmetric-256 key handle plus nonce and authentication tag.
Instructions
Decrypt and authenticate an AES-256-GCM or ChaCha20-Poly1305 ciphertext with a symmetric-256 key handle.
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": {
"ciphertext": "<ciphertext>",
"keyHandle": "<keyHandle>",
"iv": "<iv>",
"authTag": "<authTag>"
},
"name": "crypto_decrypt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iv | Yes | Hex-encoded 96-bit nonce (24 hex characters). | |
| authTag | Yes | Hex-encoded 128-bit authentication tag. | |
| algorithm | No | Algorithm used for encryption ('aes-256-gcm' or 'chacha20-poly1305'). Default is 'aes-256-gcm'. | |
| keyHandle | Yes | Handle of the symmetric-256 key. Key handles look like 'kh_' followed by 32 hex characters. | |
| ciphertext | Yes | Hex-encoded ciphertext. |