Decapsulate a shared secret
crypto_kem_decapsulateRecover an ML-KEM shared secret from a key handle and hex ciphertext; returns an opaque symmetric key handle while secret key material stays server-side.
Instructions
Recover an ML-KEM shared secret with an ml-kem key handle (512, 768, 1024). Returns a symmetric-256 keyHandle for the 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": {
"keyHandle": "<keyHandle>",
"ciphertext": "<ciphertext>"
},
"name": "crypto_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. | |
| keyHandle | Yes | Handle of the ml-kem key. Key handles look like 'kh_' followed by 32 hex characters. | |
| ciphertext | Yes | Hex-encoded ML-KEM ciphertext (1536, 2176, or 3136 hex characters). |