nx_p256_modn_mont_test.nx
buildroot/runtime/bin/nx_p256_modn_mont_test.nx
about
nx_p256_modn_mont_test.nx -- oracle test for the Montgomery fast
p256_modn_inv vs the slow Fermat reference, plus the a*a^-1 == 1
identity. Run on the NAS (x86_64). Expect: all PASS, 0 mismatches.
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_csprng.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
| none |
functions
| 8 | func t_strlen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 { n = n + 1 } return n } called by 1: t_print_num |
| 10 | func t_print_num(label: *u8, v: i64) -> i64 |
| 29 | func rand_scalar(k: *i64) -> i64 called by 1: main calls 6: sys_mmapnx_csprng_fillu256_load_bep256_modn_reduceu256_is_zerop256_modn_one |
| 38 | func check_one(k: *i64, mismatch_box: *i64, identity_fail_box: *i64) -> i64 called by 1: main calls 6: u256_allocp256_modn_invp256_modn_inv_slowu256_eqp256_modn_mulp256_modn_one |
| 53 | func main() -> i64 |