code wiki / (root) / nx_aead_bench2.nx

nx_aead_bench2.nx

buildroot/runtime/nx_aead_bench2.nx

2027 B58 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind benchtopic aead
docsdependenciesstructsconstsfunctions

about

nx_aead_bench2.nx -- replicate the LIVE per-record AEAD decrypt pattern (23 records of ~13KB) in WSL (real clock) to isolate the measured ~1ms/KB transfer slowdown. If this is ~300ms, the AEAD decrypt path itself is the bottleneck; if ~10ms, the slowness is outside it (record framing / loop). expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_chacha20_poly1305.nx nx_aead_bench2.nx

imports: nx_syscalls.nxnx_chacha20_poly1305.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_chacha20_poly1305_encry sys_mmap ↻ aead_derive_otk sys_mmap ↻ chacha20_block sys_mmap ↻ _chacha20_set_consts_key load_u32_le load_u32_le ↻ chacha20_perm sys_mmap ↻ chacha20_perm_core store_u32_le chacha20_encrypt sys_mmap ↻ _chacha20_set_consts_key ↻ load_u32_le ↻ chacha20_perm_core ↻ aead_build_mac_data aead_put_u64_le poly1305_mac sys_mmap ↻ poly1305_clamp p_load_u32_le p_store_u32_le sys_now_ms sys_mmap ↻ sys_clock_gettime_mono nx_chacha20_poly1305_decry sys_mmap ↻ sys_write aead_derive_otk ↻ sys_now_ms ↻ aead_build_mac_data ↻ poly1305_mac ↻ poly1305_tag_equal chacha20_encrypt ↻ b_ps

structs

none

consts

10const K_MAGIC_13000: i64 = 13000

functions

12func b_ps(s: *u8, n: i64) -> i64 { sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
13func b_pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
24func main() -> i64