code wiki / bin / nx_bench_verify.nx

nx_bench_verify.nx

buildroot/runtime/bin/nx_bench_verify.nx

2226 B58 linesdepth 11pulls 22 transitivereach 0 importersview sourcekind benchtopic bench
docsdependenciesstructsconstsfunctions

about

nx_bench_verify.nx -- isolated ECDSA P-256 verify bench (u1*G + u2*Q, both generic double-and-add; real signature produced first).

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_csprng.nx nx_u256.nx nx_p256_modn.nx nx_p256_point.nx nx_p256_scalar_mul.nx nx_ecdsa_p256.nx nx_ecdsa_p256_sign.nx nx_bench_verify.nx

imports: nx_syscalls.nxnx_csprng.nxnx_u256.nxnx_p256_modn.nxnx_p256_point.nxnx_p256_scalar_mul.nxnx_ecdsa_p256.nxnx_ecdsa_p256_sign.nx

imported by: nobody (leaf or entry point)

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

main u256_alloc nx_scratch nx_scratch_init sys_mmap nx_scratch_oom sys_write sys_exit sys_mmap ↻ sys_mmap ↻ nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd sys_read sys_close u256_load_be nx_ecdsa_p256_sign nx_scratch_save nx_scratch_init ↻ _nx_ecdsa_p256_sign_impl u256_is_zero u256_alloc ↻ p256_modn_load_n u256_copy p256_modn_reduce nx_scratch_save ↻ u256_alloc ↻ p256_modn_load_n ↻ u256_copy ↻ u256_cmp u256_sub_with_borrow nx_scratch_restore u256_eq nx_scratch ↻ u256_store_be _ecdsa_sign_derive_k nx_scratch_save ↻ nx_scratch ↻ drbg_hmac_init

structs

none

consts

none

functions

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