code wiki / (root) / nx_aesgcm_bench.nx

nx_aesgcm_bench.nx

buildroot/runtime/nx_aesgcm_bench.nx

1512 B46 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

nx_aesgcm_bench.nx -- measure sovereign AES-128-GCM throughput (the cipher Wikipedia/example.com actually negotiate -- NOT ChaCha20-Poly1305). WSL real clock. expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_aes128_gcm.nx nx_aesgcm_bench.nx

imports: nx_syscalls.nxnx_aes128_gcm.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 sys_now_ms sys_mmap ↻ sys_clock_gettime_mono nx_aes128_gcm_seal sys_mmap ↻ aes128_expand_key _aes_sbox _aes_rcon aes128_encrypt_block nx_ghash_reflect16 gh_byterev_bits gh_revtab sys_mmap ↻ gh_revbyte nx_ghash_mul_rev gh_clmul_core gh_scratch sys_mmap ↻ gh_clmul_mul256_acc gh_scratch ↻ gh_clmul_reduce256 gh_lshr nx_ghash_upd_rev gh_rev_scratch sys_mmap ↻ gh_byterev_bits ↻ gh_clmul_core ↻ nx_aes128_gcm_inc32 gcm_ctr_store nx_aes128_gcm_inc32 ↻ nx_ghash_upd_rev4 gh_agg_scratch sys_mmap ↻ gh_byterev_bits ↻ gh_clmul_mul256_acc ↻ gh_clmul_reduce256 ↻ nx_ghash_be64_put b_ps

structs

none

consts

8const K_MAGIC_2970000: i64 = 2970000
9const K_MAGIC_1000000: i64 = 1000000

functions

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