extract_crypto_constants
Analyze JavaScript source code to detect and extract cryptographic constants such as S-boxes, hash initial values, and elliptic curve parameters, identifying their associated algorithms and locations.
Instructions
Extract cryptographic constants from JS source code. Identifies S-boxes (AES/DES), initial hash values (SHA-256/SHA-1/MD5/SM3), round constants, elliptic curve parameters (SM2/NIST curves), magic numbers, and known crypto constant arrays. Input: JS source code. Returns list of found constants with their crypto algorithm association and location.
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": {
"source": "<source>"
},
"name": "extract_crypto_constants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | JavaScript source code to analyze |