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