code wiki / _hdl_build / nx_xxhash_kat.nx
nx_xxhash_kat.nx
buildroot/runtime/_hdl_build/nx_xxhash_kat.nx
about
nx_xxhash_kat.nx -- KAT for nx_xxhash (XXH64). HONESTY [W] weak point (reach untested). Anchors correctness
to the CANONICAL reference vector XXH64("", seed=0) = 0xEF46DB3751D8E999, then proves the hash properties:
determinism, seed-sensitivity, input-sensitivity, length-sensitivity, and no-stuck-value over many inputs.
license_tier: ORIGINAL expect_exit:0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_xxhash.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 8 | func xw(s: *u8) -> i64 { var n:i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 9 | func xh(v: i64) -> i64 { let d: *u8="0123456789abcdef" as *u8; let o: *u8=sys_mmap(20); o[0]=48 as u8; o[1]=120 as u8; var i: i64=0; while i<16 { o[2+i]=d[(v>>((15-i)*4))&15]; i=i+1 } sys_write(1,o,18); return 0 } |
| 11 | func main() -> i64 |