code wiki / _hdl_build / nx_e2e_gate.nx

nx_e2e_gate.nx

buildroot/runtime/_hdl_build/nx_e2e_gate.nx

3494 B59 linesdepth 7pulls 12 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_e2e_gate.nx -- proves the sovereign E2E session (nx_e2e): private calls the relay can't read. Native, no node. 1) ECDH agreement: Alice and Bob independently derive the SAME session key (the E2E core) 2) seal/open round-trip: Bob decrypts Alice's sealed message exactly 3) RELAY/EAVESDROPPER CAN'T READ (neg): a party without the shared key (the daemon, or Eve) fails to open 4) on-the-wire is ciphertext, not plaintext 5) tamper detection (neg): flipping one ciphertext byte -> open rejects (Poly1305) license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_e2e.nx nx_e2e_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_e2e.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write sys_mmap e2e_pub e2e_base 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 ↻ fe_invert

structs

none

consts

none

functions

12func beq(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i<n { if a[i]!=b[i] { return 0 } i=i+1 } return 1 }
called by 1: main
14func main() -> i64