nx_p256_scalar_mul_test.nx
buildroot/runtime/nx_p256_scalar_mul_test.nx
about
nx_p256_scalar_mul_test.nx -- KAT for P-256 scalar multiplication.
Verifies for small k values:
- 0 * G = O
- 1 * G = G
- 2 * G = double(G)
- 3 * G = G + 2G
- 4 * G = double(2G) = via scalar_mul(4, G)
- 256 * G = 8 doublings of G
- aliasing: out aliases p in scalar_mul
- 0 * O = O, k * O = O for various k
Larger k values are exercised indirectly via the ECDSA verify
KAT (queued for piece 4) -- 256-bit scalars take ~2-3s each in
the slow form and would push smoke runtime past budget.
expect_exit: 0
license_tier: ORIGINAL
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_u256.nxnx_p256_field.nxnx_p256_point.nxnx_p256_point_add.nxnx_p256_scalar_mul.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
| 27 | func main() -> i64 |