code wiki / bin / nx_bench_x25519.nx

nx_bench_x25519.nx

buildroot/runtime/bin/nx_bench_x25519.nx

1685 B43 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind benchtopic bench
docsdependenciesstructsconstsfunctions

about

nx_bench_x25519.nx -- isolated X25519 ECDH (variable-base) bench.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_csprng.nx nx_x25519_ephemeral.nx nx_bench_x25519.nx

imports: nx_syscalls.nxnx_csprng.nxnx_x25519_ephemeral.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_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd sys_read sys_close x25519_gen_keypair x25519_keypair_private rand_bytes rand_open_urandom sys_openat_rd ↻ sys_read ↻ sys_close ↻ x25519_keypair_public sys_mmap ↻ x25519_base_point x25519 nx_scratch_save nx_scratch_init sys_mmap ↻ nx_scratch nx_scratch_init ↻ nx_scratch_oom sys_write sys_exit sys_mmap ↻ fe_alloc nx_scratch ↻ fe_from_bytes fe_one fe_zero fe_zero ↻ fe_copy x25519_ladder_step fe_cswap nx_scratch_save ↻ fe_alloc ↻ fe_add

structs

none

consts

none

functions

6func bstrlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 { n = n + 1 } return n }
called by 1: bprint
7func bprint(label: *u8, total_us: i64, n: i64) -> i64
called by 1: main calls 3: sys_writebstrlensys_mmap
29func main() -> i64