code wiki / p256

topic: p256

42 modules sharing the p256 name family (derived from the tree's prefix discipline).

The 'p256' topic family in the Nishi sovereign ecosystem provides cryptographic functionality for the NIST P-256 elliptic curve, supporting operations like scalar multiplication, key exchange, and verification. Modules such as nx_p256_comb enable efficient fixed-base scalar multiplication, while nx_p256_ecdh implements secure ECDH key exchange. nx_p256_field_inv handles modular inversion, essential for field operations, ensuring robust and optimized cryptographic performance across the ecosystem.

auto-narrated by the local model from this topic's module headers; links verified against the wiki index.

narrated overview -- maintained by the narration lane, module links verified against this wiki.

moduledescriptionlinesfuncs
nx_p256_comb.nxfixed-base windowed scalar multiplication for the1155
nx_p256_comb_bench.nxdoes the fixed-base comb (p256_scalar_mul_base, precomputed G-table) beat684
nx_p256_comb_gen.nxbuild the P-256 fixed-base comb table once and231
nx_p256_comb_test.nxoracle test: fixed-base comb k*G must equal the684
nx_p256_ecdh.nxECDH key exchange on P-256 (secp256r1) for the1445
nx_p256_ecverify_core_bench.nxSAME-RUN clean comparison of the verify's EC core (u1*G + u2*Q +714
nx_p256_field.nxNIST P-256 prime field arithmetic.16510
nx_p256_field_inv.nxP-256 prime-field modular inverse via1384
nx_p256_field_inv_test.nxKAT for P-256 modular inverse via1111
nx_p256_field_mul.nxP-256 prime field multiplication.30811
nx_p256_field_mul_oracle_test.nxvalidates the FAST Solinas965
nx_p256_field_mul_test.nxKAT for P-256 field multiplication.1931
nx_p256_field_test.nxKAT for P-256 prime field add/sub/neg.1791
nx_p256_fieldmul_3way_bench.nxDEFINITIVE single-run decomposition of the P-256 field-mul win:948
nx_p256_fieldmul_bench.nxa NON-const-foldable P-256 field-mul benchmark.431
nx_p256_fieldmul_full_bench.nxthe FULLY-optimized P-256 field multiply: fused __mul256_wide846
nx_p256_fieldmul_mulx.nxP-256 field multiply using the FUSED __mul256_wide intrinsic464
nx_p256_fieldmul_mulx_bench.nxfield-mul-level speed: production p256_field_mul (u256_mul_wide604
nx_p256_fieldmul_mulx_difftest.nxprove the fused-intrinsic P-256 field multiply is bit-exact615
nx_p256_keyshare_test.nxB4-P256-KEYSHARE gate row.1753
nx_p256_modn.nxarithmetic in Z/nZ where n is the NIST P-25638520
nx_p256_modn_mont_test.nxoracle test for the Montgomery fast815
nx_p256_modn_test.nxKAT for arithmetic in Z/nZ where n is1381
nx_p256_point.nxNIST P-256 elliptic-curve point operations.38213
nx_p256_point_add.nxP-256 Jacobian point addition.1772
nx_p256_point_add_test.nxKAT for P-256 Jacobian point addition.1211
nx_p256_point_test.nxKAT for P-256 point operations.1331
nx_p256_pointloop_bench.nxreusable crypto perf workload for codegen A/B.331
nx_p256_scalar_mul.nxP-256 scalar multiplication k * P.1042
nx_p256_scalar_mul_test.nxKAT for P-256 scalar multiplication.1201
nx_p256_scalar_mul_wnaf.nxvariable-base scalar mult via width-4 wNAF (signed non-adjacent form).1102
nx_p256_sign_bench.nxmeasure the ACTUAL per-handshake server crypto:543
nx_p256_solinas_difftest.nxDIFFERENTIAL correctness gate for the45610
nx_p256_solinas_fast.nxa FASTER NIST P-256 Solinas reducer, bit-exact with the production1192
nx_p256_solinas_fast_bench.nxreduce-only speed: production _p256_solinas_reduce (~60 _r_addw484
nx_p256_solinas_fast_difftest.nxprove the deferred-carry _p256_solinas_reduce_fast is bit-exact545
nx_p256_solinas_timing.nxhonest FAST(Solinas) vs SLOW(bit-serial)1223
nx_p256_verify_bench.nxend-to-end ECDSA P-256 verify throughput (u1*G + u2*Q double-and-add).594
nx_p256_verify_components.nxdecompose the ECDSA verify budget so the next optimization targets664
nx_p256_verify_timing.nxend-to-end ECDSA-P256 verify timing on the1382
nx_p256_wnaf_bench.nxis wNAF-4 actually faster than generic double-and-add for variable-base524
nx_p256_wnaf_difftest.nxprove p256_scalar_mul_wnaf == p256_scalar_mul (generic double-and-add,754