code wiki / _hdl_build / nx_tor_ntor_cli.nx
nx_tor_ntor_cli.nx
buildroot/runtime/_hdl_build/nx_tor_ntor_cli.nx
about
nx_tor_ntor_cli.nx -- CLI/demo for the sovereign Tor ntor handshake. Runs ONE full handshake with FIXED
deterministic keys and prints every wire artifact as hex: the client onion skin (CREATE2 HDATA), the
server reply Y|AUTH (CREATED2 HDATA), KEY_SEED, and the 92-byte circuit keys. Purpose: this is the
harness that CLOSES the remaining interop gap -- feed the SAME fixed inputs to a reference Tor ntor
(e.g. tor's ntor_ref.py) offline and diff the hex; equality == byte-exact interop. No network, no args.
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_x25519_ephemeral.nxnx_tor_ntor.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
| 11 | func c_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 13 | func c_hex(label: *u8, buf: *u8, n: i64) -> i64 |
| 24 | func main() -> i64 |