← All docs
hash_hmac() — internals
Compiler internals for hash_hmac(): lowering path, type checks, and runtime helpers.
hash_hmac() — internals
Where it lives
- Signature:
src/builtins/string/hash_hmac.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:245 (lower_hash_hmac) - Function symbol:
lower_hash_hmac()
Lowering notes
- Lowers
hash_hmac(algo, data, key, binary?)through the shared HMAC runtime dispatcher.
Runtime helpers
The following runtime helpers are referenced:
__rt_hash_equals__rt_hash_hmac
Signature summary
function hash_hmac(string $algo, string $data, string $key, bool $binary = false): string
What the type checker enforces
- Arity: takes 3–4 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/hash_hmac.rs(eval_builtin!) - Dispatch hooks:
direct,values