HMAC-SHA384
hmac-sha384Calcula el HMAC (RFC 2104) con SHA384. Cuándo: hay que firmar un mensaje, o comprobar una firma, con un secreto compartido que viene en la llamada. No para: comprobar una firma HMAC en tiempo constante (hmac-verify). 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: Computes the HMAC (RFC 2104) using SHA384 over text, hex or base64 data with a text, hex or base64 key. When: a message has to be signed, or a signature checked, with a shared secret supplied in the call. Not for: checking an HMAC signature in constant time (hmac-verify). 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 |
|---|---|---|---|
| key | Yes | Secret key (string; required; up to 4096 chars). | |
| data | Yes | Input data (string; required). | |
| key_encoding | No | Encoding of `key` (optional; one of: utf8, hex, base64; default "utf8"). | utf8 |
| input_encoding | No | How `data` is encoded (optional; one of: utf8, hex, base64; default "utf8"). | utf8 |
| output_encoding | No | Output encoding of the digest (optional; one of: hex, base64, base64url; default "hex"). | hex |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mac | No | ||
| encoding | No | ||
| algorithm | No |