code wiki / _hdl_build / nx_ch_census_oracle.nx

nx_ch_census_oracle.nx

buildroot/runtime/_hdl_build/nx_ch_census_oracle.nx

5370 B122 linesdepth 11pulls 28 transitivereach 0 importersview sourcekind tooltopic ch
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_csprng.nx nx_itoa_lib.nx nx_tls13_client_session.nx nx_tls13_hello.nx _pe_chwalk.nx nx_ch_census_oracle.nx

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

main 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 ↻ nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd sys_read sys_close nx_tls13_client_session_ne sys_mmap ↻ nx_tls13_transcript_new sys_mmap ↻ sha256_init sys_mmap ↻ sha256_seed_allocated sha256_k sha384_init p256_ecdh_derive_priv sys_mmap ↻ sha256_digest sys_mmap ↻ sha256_init ↻ sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress

structs

none

consts

16const K_MAGIC_1024: i64 = 1024

functions

18func oc_puts(fd: i64, s: *u8) -> i64
called by 3: oc_rowoc_manifestmain calls 1: sys_write
29func oc_putn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 2: oc_rowmain calls 1: nxi_fd
31func oc_write_file(path: *u8, b: *u8, n: i64) -> i64
40func oc_row(fd: i64, casen: *u8, key: *u8, want: i64) -> i64
called by 1: oc_manifest calls 2: oc_putsoc_putn
52func oc_manifest(path: *u8, exp: *i64, tamper: i64) -> i64
78func main() -> i64