code wiki / (root) / nx_p256_solinas_fast_difftest.nx

nx_p256_solinas_fast_difftest.nx

buildroot/runtime/nx_p256_solinas_fast_difftest.nx

2852 B54 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind tooltopic p256
docsdependenciesstructsconstsfunctions

about

nx_p256_solinas_fast_difftest.nx -- prove the deferred-carry _p256_solinas_reduce_fast is bit-exact with the production _p256_solinas_reduce over random 512-bit inputs (via the public framed entries p256_field_reduce_solinas_fast / p256_field_reduce_solinas). No intrinsic -> builds live. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_p256_solinas_fast.nx nx_p256_solinas_fast_difftest.

imports: nx_p256_solinas_fast.nx

imported by: nobody (leaf or entry point)

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

main dp lcg p256_field_reduce_solinas nx_scratch_save nx_scratch_init sys_mmap _p256_solinas_reduce u256_alloc nx_scratch nx_scratch_init ↻ nx_scratch_oom sys_write sys_exit sys_mmap ↻ p256_field_load_p nx_scratch ↻ _r_reduce9 _r_cmp8 nx_scratch_restore p256_field_reduce_solinas_ _p256_solinas_reduce_fast u256_alloc ↻ p256_field_load_p ↻ _r_reduce9 ↻ _r_cmp8 ↻ dn dhex

structs

none

consts

6const K_MAGIC_6364136223846793005: i64 = 6364136223846793005
7const K_MAGIC_1442695040888963407: i64 = 1442695040888963407
8const K_MAGIC_5000: i64 = 5000

functions

10func 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
11func dn(v: i64) -> i64
called by 1: main
17func dhex(v: i64) -> i64
called by 1: main
22func lcg(st: *i64) -> i64 { let x: i64 = st[0] * K_MAGIC_6364136223846793005 + K_MAGIC_1442695040888963407; st[0] = x; return x }
called by 1: main
24func main() -> i64