Hybrid post-quantum KEM decapsulate
crypto_hybrid_kem_decapsulateDerive the combined X25519 + ML-KEM shared secret from stored key handles and ciphertext, returning an opaque symmetric-256 key handle without exposing private key material.
Instructions
Recover a Post-Quantum Hybrid KEM shared secret (X25519 + ML-KEM) using server-held x25519 and ml-kem key handles. Returns 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": {
"x25519KeyHandle": "<x25519KeyHandle>",
"mlKemKeyHandle": "<mlKemKeyHandle>",
"x25519EphemeralPublic": "<x25519EphemeralPublic>",
"mlKemCiphertext": "<mlKemCiphertext>"
},
"name": "crypto_hybrid_kem_decapsulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ML-KEM security level (512, 768, or 1024). Default is inferred from key or 768. | |
| mlKemKeyHandle | Yes | Handle of the recipient ML-KEM key. Key handles look like 'kh_' followed by 32 hex characters. | |
| mlKemCiphertext | Yes | Hex-encoded ML-KEM ciphertext (1536, 2176, or 3136 hex characters). | |
| x25519KeyHandle | Yes | Handle of the recipient X25519 key. Key handles look like 'kh_' followed by 32 hex characters. | |
| x25519EphemeralPublic | Yes | Hex-encoded sender ephemeral X25519 public key (64 hex characters). |