Stream encrypt data (post-quantum)
crypto_stream_encryptEncrypt plaintext with post-quantum hybrid X25519, ML-KEM-768 and XChaCha20-Poly1305 AEAD; returns base64 ciphertext with anti-truncation protection.
Instructions
Encrypt plaintext using post-quantum hybrid STREAM AEAD (X25519 + ML-KEM-768 + XChaCha20-Poly1305) with anti-truncation protection. Returns base64 ciphertext.
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": {
"plaintext": "<plaintext>",
"x25519PublicKey": "<x25519PublicKey>",
"mlKemPublicKey": "<mlKemPublicKey>"
},
"name": "crypto_stream_encrypt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunkSize | No | Chunk size in bytes (minimum 64, default 65536). | |
| plaintext | Yes | Plaintext string to encrypt. | |
| mlKemPublicKey | Yes | Hex-encoded ML-KEM-768 public key (2368 hex characters). | |
| x25519PublicKey | Yes | Hex-encoded X25519 public key (64 hex characters). |