nx_p256_fieldmul_mulx_difftest.nx
buildroot/runtime/nx_p256_fieldmul_mulx_difftest.nx
about
nx_p256_fieldmul_mulx_difftest.nx -- prove the fused-intrinsic P-256 field multiply is bit-exact
vs the production p256_field_mul over many random field elements. Since both reduce with the
SAME _p256_solinas_reduce, this reduces correctness to the (already silicon-proven) 512-bit
product -- but running the FULL field-mul path end-to-end is the real composition proof.
expect_exit: 0 license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_p256_fieldmul_mulx.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
| 7 | const K_MAGIC_6364136223846793005: i64 = 6364136223846793005 |
| 8 | const K_MAGIC_1442695040888963407: i64 = 1442695040888963407 |
| 9 | const K_MAGIC_4000: i64 = 4000 |
functions
| 11 | func dp(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } called by 1: main |
| 12 | func dn(v: i64) -> i64 called by 1: main |
| 18 | func dhex(v: i64) -> i64 called by 1: main |
| 23 | func lcg(st: *i64) -> i64 { let x: i64 = st[0] * K_MAGIC_6364136223846793005 + K_MAGIC_1442695040888963407; st[0] = x; return x } called by 1: main |
| 25 | func main() -> i64 |