code wiki / _hdl_build / _ar2_perf_probe.nx

_ar2_perf_probe.nx

buildroot/runtime/_hdl_build/_ar2_perf_probe.nx

2616 B53 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

_ar2_perf_probe.nx -- TIMING ORACLE for argon2id KDF params (vault machine-key v2 upgrade). Measures wall ms at candidate (m_kib, t) pairs so the chosen params are MEASURED, not guessed (no magic numbers). Run after the 2026-06-10 compiler bless; before this the module miscompiled. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_argon2id.nx _ar2_perf_probe.nx

imports: nx_syscalls.nxnx_argon2id.nx

imported by: nobody (leaf or entry point)

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

main _p sys_write pp_one pp_mk_ctx sys_mmap sys_mmap ↻ sys_now_ms sys_mmap ↻ sys_clock_gettime_mono nx_argon2id_hash _ar2_h0 _ar2_write_le32 nx_blake2b_hash nx_blake2b_init _b2b_iv nx_blake2b_update _b2b_compress nx_blake2b_final _b2b_compress ↻ _b2b_store_u64_le _b2b_shr64 _ar2_block_at nx_blake2b_long _b2bl_write_le32 nx_blake2b_hash ↻ _b2bl_copy _ar2_gen_address_block _ar2_write_le64 nx_argon2_g _a2b_load_u64_le _a2b_p _a2b_gb _a2b_store_u64_le _a2b_shr64 _ar2_load_u64_le _ar2_map_index _ar2_lshr32 nx_argon2_g ↻ _ar2_block_xor_into

structs

none

consts

none

functions

7func _p(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 2: pp_onemain calls 1: sys_write
8func _pn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
called by 1: pp_one calls 2: sys_mmapsys_write
9func pp_mk_ctx(m_kib: i64) -> *NxArgon2idCtx
called by 1: pp_one calls 1: sys_mmap
32func pp_one(m_kib: i64, t: i64) -> i64
43func main() -> i64