Sign data
crypto_signSigns data with a key handle, automatically applying the key's algorithm: Ed25519, RSASSA-PSS, ECDSA, ML-DSA, or HMAC-SHA256. Use it to produce cryptographic signatures or MACs for verification.
Instructions
Sign data with a key handle. The algorithm follows the key: Ed25519, RSASSA-PSS (SHA-256), ECDSA (SHA-256; SHA-384 on P-384), ML-DSA (44, 65, 87, FIPS 204), or HMAC-SHA256.
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": {
"data": "<data>",
"keyHandle": "<keyHandle>"
},
"name": "crypto_sign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data string to sign. | |
| keyHandle | Yes | Handle of an ed25519, rsa, ecc, ml-dsa, or hmac-sha256 key. Key handles look like 'kh_' followed by 32 hex characters. |