code wiki / _hdl_build / nx_e2e_gate.nx

nx_e2e_gate.nx

buildroot/runtime/_hdl_build/nx_e2e_gate.nx

3931 B67 linesdepth 7pulls 13 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 4 imports · 0 importers

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

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_e2e.nxnx_gate_verdict.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 nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ e2e_pub e2e_base e2e_session_key g_check g_puts ↻ beq e2e_seal nx_chacha20_poly1305_encry sys_mmap ↻ aead_derive_otk sys_mmap ↻ chacha20_block sys_mmap ↻ _chacha20_set_consts_key load_u32_le load_u32_le ↻ chacha20_perm sys_mmap ↻ chacha20_perm_core chacha20_encrypt sys_mmap ↻ _chacha20_set_consts_key ↻

structs

none

consts

none

functions

13func 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
15func main() -> i64