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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | JavaScript source code to analyze |