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 nx_csprng_fill sys_mmap ↻ nx_csprng_urandom_path sys_openat_rd sys_read sys_close nx_tls13_client_session_ne sys_mmap ↻ x25519_keypair_public sys_mmap ↻ x25519_base_point x25519 nx_scratch_save nx_scratch_init sys_mmap ↻ nx_scratch nx_scratch_init ↻ nx_scratch_oom sys_write sys_exit sys_mmap ↻ fe_alloc nx_scratch ↻ fe_from_bytes fe_one fe_zero fe_zero ↻ fe_copy x25519_ladder_step fe_cswap nx_scratch_save ↻ fe_alloc ↻ fe_add fe_sq fe_mul fe_sub fe_mul ↻ fe_mul_a24

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