nx_p256_verify_components.nx
buildroot/runtime/nx_p256_verify_components.nx
about
nx_p256_verify_components.nx -- decompose the ECDSA verify budget so the next optimization targets
the actual biggest remaining cost (not a guess). Times: modn_inv (s^-1 mod n), generic scalar_mul
(u2*Q), comb scalar_mul (u1*G), point_to_affine (field inversion mod p). expect_exit: 0
license_tier: ORIGINAL
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_csprng.nxnx_p256_comb.nxnx_p256_scalar_mul.nxnx_p256_modn.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const K_MAGIC_1000000000: i64 = 1000000000 |
| 21 | const NI: i64 = 300 |
functions
| 12 | func bp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 13 | func bn(v: i64) -> i64 |
| 19 | func now_ns(ts: *i64) -> i64 { __syscall(SYS_CLOCK_GETTIME, 1, ts as i64, 0, 0, 0, 0); return ts[0] * K_MAGIC_1000000000 + ts[1] } called by 1: main |
| 23 | func main() -> i64 |