code wiki / (root) / nx_tls13_p256_loopback_test.nx

nx_tls13_p256_loopback_test.nx

buildroot/runtime/nx_tls13_p256_loopback_test.nx

5286 B127 linesdepth 12pulls 35 transitivereach 0 importersview sourcekind gate/prooftopic tls13
docsdependenciesstructsconstsfunctions

about

nx_tls13_p256_loopback_test.nx -- server side of rung B4-P256-KEYSHARE: SOVEREIGN loopback proof that OUR server completes a TLS 1.3 key exchange on secp256r1. Found 2026-06-10 (B2 census): nishifamily.com -- our own server stack -- FAILED a P-256-only probe because recv_ch extracted x25519 shares only. This row proves the healed path end-to-end in-memory, no sockets: 1. client session emits a P-256-ONLY ClientHello (the same census mode the ch-compat github leg uses LIVE) 2. server recv_ch accepts it WITHOUT HelloRetryRequest (kex_group = 23, client share captured) 3. server emit_sh answers with a secp256r1 KeyShareEntry 4. client recv_sh completes its side (P-256 ECDH + schedule) 5. server derive_hs completes its side 6. THE PROOF: both sides hold byte-identical c/s handshake traffic secrets (only possible if both P-256 ECDH halves agree on the shared x-coordinate) 7. boundary: corrupted (off-curve) client share -> server derive_hs rejects with PROTOCOL_ERR, never INTERNAL Composes the github live leg (client vs independent peer) into a closed sovereign loop (our client vs OUR server). Deploying the healed server to nishifamily = follow-up (sites-daemon rebuild). expect_exit: 0 license_tier: ORIGINAL

dependencies 11 imports · 0 importers

nx_syscalls.nx nx_tls13.nx nx_tls13_hello.nx nx_tls13_transcript.nx nx_tls13_client_session.nx nx_tls13_client_session_recv_sh.nx nx_tls13_server_session.nx nx_tls13_server_session_recv_ch.nx nx_tls13_server_session_emit_sh.nx nx_tls13_server_session_derive_hs. nx_tls13_p256_loopback_test.nx

diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_tls13.nxnx_tls13_hello.nxnx_tls13_transcript.nxnx_tls13_client_session.nxnx_tls13_client_session_recv_sh.nxnx_tls13_server_session.nxnx_tls13_server_session_recv_ch.nxnx_tls13_server_session_emit_sh.nxnx_tls13_server_session_derive_hs.nxnx_tls13_server_session_derive_traffic.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_tls13_client_session_ne sys_mmap ↻ x25519_keypair_public sys_mmap ↻ x25519_base_point x25519 nx_scratch_save nx_scratch_init sys_mmap ↻ nx_scratch nx_scratch_init ↻ nx_scratch_oom sys_write sys_exit sys_mmap ↻ fe_alloc nx_scratch ↻ fe_from_bytes fe_one fe_zero fe_zero ↻ fe_copy x25519_ladder_step fe_cswap nx_scratch_save ↻ fe_alloc ↻ fe_add fe_sq fe_mul fe_sub fe_mul ↻ fe_mul_a24 nx_scratch_save ↻ fe_alloc ↻ fe_mul ↻ nx_scratch_restore nx_scratch_restore ↻ fe_cswap ↻

structs

none

consts

none

functions

42func lp_eq32(a: *u8, b: *u8) -> i64
called by 1: main
51func main() -> i64