code wiki / _hdl_build / nx_otk_extvec_gate.nx
nx_otk_extvec_gate.nx
buildroot/runtime/_hdl_build/nx_otk_extvec_gate.nx
about
nx_otk_extvec_gate.nx -- NINTH provably third-party-validated claim: Poly1305 one-time-key derivation
(not just the block function) vs RFC 8439 2.4.2, from the same pinned document.
★THIS IS THE SECTION THAT BROKE THE PREVIOUS PARSER, AND THAT IS WHY IT IS WORTH DOING. 2.4.2's ASCII
gutter is ENGLISH -- "...would be it." -- and `be` is a whitespace-delimited, exactly-two-character,
ALL-HEX token. The content-classifying reader I first shipped would absorb it as byte 0xbe and shift
every byte after it. The LINE-BOUNDED reader used here takes token 0 as the offset, tokens 1..16 as
data, and ignores the rest BY POSITION, so the gutter cannot contribute no matter what it spells.
★★★★LAW: A DISCRIMINATOR PROVEN ON ONE INSTANCE OF A DIALECT IS NOT PROVEN ON THE DIALECT.
★STRONGER THAN THE POLY1305 GATE: there, the message was ASCII prose so I supplied the input and let the
published tag verify it. Here BOTH the plaintext AND the ciphertext are hexdumps in the document, so
every byte on both sides of the comparison is read from the authority. Nothing is agent-supplied.
license_tier: ORIGINAL expect_exit: 0
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_sha256_wasm.nxnx_chacha20.nxnx_poly1305.nxnx_chacha20_poly1305.nxnx_gate_verdict.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
| 22 | func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 23 | func wb(b: *u8, n: i64) -> i64 { sys_write(1, b, n); return 0 } |
| 25 | func nn(v: i64) -> i64 |
| 39 | func hexnib(v: i64) -> i64 { if v < 10 { return 48 + v } return 87 + v } called by 1: main |
| 41 | func hexval(c: i64) -> i64 |
| 48 | func isws(c: i64) -> i64 |
| 56 | func starts(b: *u8, n: i64, at: i64, s: *u8) -> i64 called by 1: findfrom |
| 66 | func findfrom(b: *u8, n: i64, s: *u8, from: i64) -> i64 |
| 75 | func parsenib(b: *u8, n: i64, from: i64, out: *u8, want: i64) -> i64 |
| 104 | func parsedump(b: *u8, n: i64, from: i64, out: *u8, want: i64) -> i64 |
| 143 | func main() -> i64 |