nx_https_loopback_test.nx
buildroot/runtime/nx_https_loopback_test.nx
about
nx_https_loopback_test.nx -- HTTPS-class fork loopback over real
TCP that does the FULL TLS 1.3 handshake AND exchanges an HTTP/1.1
GET / 200 OK pair as AEAD-encrypted records inside the established
session.
This is the "browser substrate" end-to-end smoke: every byte on
the wire is bit-identical to what real HTTPS produces (handshake
+ cipher records). Only the cert chain validation is stubbed
(server's hand-built cert/cv blobs accepted unconditionally).
Built per F6 friction-catalog discipline.
expect_exit: 0
license_tier: ORIGINAL
dependencies 13 imports · 0 importers
diagram shows first 10 each side; +3 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_connect.nxnx_x25519.nxnx_tls13.nxnx_tls13_ext.nxnx_tls13_hello.nxnx_tls13_finished.nxnx_tls13_transcript.nxnx_tls13_handshake.nxnx_tls13_schedule.nxnx_tls13_client.nxnx_tls13_server.nxnx_tls13_record.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
| 30 | const HPORT: i64 = 19447 |
functions
| 34 | func hbuild_addr(out: *u8, port: i64) -> i64 called by 1: main |
| 44 | func hread_n(fd: i64, buf: *u8, n: i64) -> i64 |
| 54 | func hsend_plain(fd: i64, buf: *u8, n: i64) -> i64 |
| 65 | func hrecv_plain(fd: i64, buf: *u8, cap: i64) -> i64 |
| 75 | func hsend_app(fd: i64, key: *u8, iv: *u8, seq: i64, p: *u8, plen: i64) -> i64 |
| 87 | func hrecv_app(fd: i64, key: *u8, iv: *u8, seq: i64, out: *u8, out_cap: i64) -> i64 |
| 106 | func hsend_aead(fd: i64, key: *u8, iv: *u8, seq: i64, p: *u8, plen: i64) -> i64 called by 2: hserver_send_flightrun_client_after_keys calls 3: sys_mmapnx_tls13_record_encryptsys_write |
| 118 | func hrecv_aead(fd: i64, key: *u8, iv: *u8, seq: i64, out: *u8, out_cap: i64) -> i64 |
| 138 | func halloc_bundle() -> *u8 |
| 150 | func hbundle_ptr(bundle: *u8, slot: i64) -> *u8 |
| 155 | func hsetup_keypair(priv: *u8, pub: *u8) -> i64 |
| 167 | func hfill_priv(out: *u8, base: i64) -> i64 |
| 173 | func hfill_empty_hash(out: *u8) -> i64 |
| 185 | func hfill_random(out: *u8, base: i64) -> i64 |
| 191 | func hderive_keys(my_priv: *u8, peer_pub: *u8, th: *u8, eh: *u8, bundle: *u8) -> i64 called by 2: run_https_clientrun_server_after_sh calls 2: hbundle_ptrtls13_handshake_compute_handshake_keys |
| 203 | func hemit_send_ch(fd: i64, c_pub: *u8, ch_out: *u8, ch_cap: i64) -> i64 |
| 216 | func hparse_sh_get_pub(sh: *u8, sh_len: i64, pub_out: *i64) -> i64 |
| 232 | func hparse_ch_get_pub(ch: *u8, ch_len: i64, sid_o: *i64, sid_l: *i64, pub_out: *i64) -> i64 |
| 246 | func hbuild_th(ch: *u8, ch_len: i64, sh: *u8, sh_len: i64, th_out: *u8, tx_out: *i64) -> i64 |
| 255 | func haead_dispatch(fd: i64, key: *u8, iv: *u8, seq: i64, st: i64, shts: *u8, tx: *u8) -> i64 called by 1: run_client_after_keys calls 3: sys_mmaphrecv_aeadtls13_client_dispatch_handshake_message |
| 267 | func hbuild_canned(ee: *u8, cert: *u8, cv: *u8) -> i64 called by 1: hserver_send_flight |
| 288 | func hcompute_sf(tx: *u8, shts: *u8, sf_out: *u8) -> i64 |
| 302 | func hserver_send_flight(fd: i64, bundle: *u8, tx: *u8) -> i64 |
| 326 | func hserver_recv_cf(fd: i64, bundle: *u8, tx: *u8) -> i64 called by 1: run_server_after_sh calls 4: hbundle_ptrsys_mmaphrecv_aeadtls13_server_dispatch_client_finished |
| 342 | func hbuild_http_get(out: *u8) -> i64 called by 1: run_client_http |
| 357 | func hbuild_http_200(out: *u8) -> i64 called by 1: run_server_http |
| 376 | func hclient_setup(out_pub: *u8) -> *u8 |
| 384 | func hclient_xchg_hello(cfd: i64, c_pub: *u8, ch: *u8, sh: *u8, lens: *i64, pub_slot: *i64) -> i64 |
| 394 | func run_client_http(cfd: i64, ck: *u8, civ: *u8, sk: *u8, siv: *u8) -> i64 |
| 413 | func run_client_after_keys(cfd: i64, bundle: *u8, tx: *u8) -> i64 |
| 440 | func run_https_client(cfd: i64) -> i64 called by 1: main calls 8: sys_mmaphclient_setuphclient_xchg_hellohbuild_thhfill_empty_hashhalloc_bundle+2 |
| 467 | func run_server_http(cfd: i64, bundle: *u8) -> i64 |
| 487 | func run_server_after_sh(cfd: i64, ctx: *i64) -> i64 |
| 506 | func run_https_server(cfd: i64) -> i64 called by 1: main calls 11: sys_mmaphfill_privhsetup_keypairhrecv_plainhparse_ch_get_pubhfill_random+5 |
| 542 | func main() -> i64 |