Stream decrypt data (post-quantum)
crypto_stream_decryptDecrypt a post-quantum hybrid STREAM AEAD ciphertext using server-held X25519 and ML-KEM-768 key handles, then wipe plaintext memory after decoding.
Instructions
Decrypt a post-quantum hybrid STREAM AEAD ciphertext using server-held x25519 and ml-kem-768 key handles. Plaintext memory is wiped after decoding.
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>",
"x25519KeyHandle": "<x25519KeyHandle>",
"mlKemKeyHandle": "<mlKemKeyHandle>"
},
"name": "crypto_stream_decrypt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunkSize | No | Chunk size used during encryption (default 65536). | |
| ciphertext | Yes | Base64-encoded STREAM ciphertext. | |
| mlKemKeyHandle | Yes | Handle of the recipient ML-KEM-768 key. Key handles look like 'kh_' followed by 32 hex characters. | |
| x25519KeyHandle | Yes | Handle of the recipient X25519 key (or 32-byte symmetric-256 key). Key handles look like 'kh_' followed by 32 hex characters. |