code wiki / (root) / nx_sha1_diff_probe.nx

nx_sha1_diff_probe.nx

buildroot/runtime/nx_sha1_diff_probe.nx

1541 B36 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_sha1_diff_probe.nx -- differential oracle for the SHA-1 optimization. Hashes deterministic inputs of every length 0..256 (all padding boundaries) and rolls a single hash over all 20-byte digests. Golden BEFORE the optimization must equal AFTER.

dependencies 1 imports · 0 importers

nx_sha1.nx nx_sha1_diff_probe.nx

imports: nx_sha1.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sha1 sys_mmap sha1_process_block if_ge _p_puts _p_putn

structs

none

consts

6const K_MAGIC_1000000007: i64 = 1000000007
7const K_MAGIC_196783082: i64 = 196783082

functions

9func _p_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main
10func _p_putn(v: i64) -> i64
called by 1: main
17func main() -> i64