Hybrid post-quantum KEM encapsulate
crypto_hybrid_kem_encapsulateEncapsulate a shared secret with a hybrid X25519 + ML-KEM KEM and return the ephemeral public key, ML-KEM ciphertext, and opaque symmetric key handle while private key material stays server-side.
Instructions
Encapsulate a shared secret using Post-Quantum Hybrid KEM (X25519 + ML-KEM, RFC 9180/10024). Returns the classical ephemeral public key, ML-KEM ciphertext, and a symmetric-256 keyHandle for the combined shared secret. 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": {
"x25519PublicKey": "<x25519PublicKey>",
"mlKemPublicKey": "<mlKemPublicKey>"
},
"name": "crypto_hybrid_kem_encapsulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ML-KEM security level (512, 768, or 1024). Default is 768. | |
| mlKemPublicKey | Yes | Hex-encoded recipient ML-KEM public key (1600, 2368, or 3136 hex characters). | |
| x25519PublicKey | Yes | Hex-encoded recipient X25519 public key (64 hex characters). |