code wiki / _hdl_build / nx_ch_census_oracle.nx
nx_ch_census_oracle.nx
buildroot/runtime/_hdl_build/nx_ch_census_oracle.nx
about
nx_ch_census_oracle.nx -- per-assignment ORACLE STAGER for the CH-census race under the
generic referee (nx_race_referee). Composes the TEAM's own pieces: _pe_chwalk (STRUCT_WALK-
authored) locates the extension block of the real emitted ClientHello; the SHIPPED
tls13_ext_find supplies ground-truth offsets (it predates every lane = neutral). Writes:
/tmp/race_block.bin /tmp/race_trunc.bin /tmp/race_empty.bin the three case inputs
/tmp/race_manifest.txt lanes + cases + 12 rows with oracle wants
/tmp/race_manifest_tampered.txt same but row 1's want is +1 -- staging THIS manifest must
turn the referee RED (proves the harness can fail)
A NEW assignment = a new oracle stager like this one + the same referee. license_tier: ORIGINAL
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_csprng.nxnx_itoa_lib.nxnx_tls13_client_session.nxnx_tls13_hello.nx_pe_chwalk.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
| 16 | const K_MAGIC_1024: i64 = 1024 |
functions
| 18 | func oc_puts(fd: i64, s: *u8) -> i64 |
| 29 | func oc_putn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 } |
| 31 | func oc_write_file(path: *u8, b: *u8, n: i64) -> i64 |
| 40 | func oc_row(fd: i64, casen: *u8, key: *u8, want: i64) -> i64 |
| 52 | func oc_manifest(path: *u8, exp: *i64, tamper: i64) -> i64 |
| 78 | func main() -> i64 |