Derivar clave con HKDF
kdf-hkdfDeriva material de clave con HKDF (RFC 5869). Cuándo: hay que derivar una clave a partir de una contraseña o un secreto con parámetros conocidos. No para: derivar una clave con PBKDF2 (kdf-pbkdf2). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Derives key material with HKDF (RFC 5869) using SHA-256 or SHA-512, from hex-encoded input key material, salt and info. When: a key has to be derived from a password or secret with known parameters. Not for: deriving a key with PBKDF2 (kdf-pbkdf2). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ikm | Yes | Input key material, hex (string; required; up to 2048 chars). | |
| info | No | Context info, hex (string; optional; default ""; up to 2048 chars). | |
| salt | No | Salt, hex (string; optional; default ""; up to 2048 chars). | |
| digest | No | Hash (optional; one of: sha256, sha512; default "sha256"). | sha256 |
| length | No | Output length in bytes (integer; optional; default 32; min 1; max 8160). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| okm | No |