code wiki / _hdl_build / nx_aescbc_extvec_gate.nx

nx_aescbc_extvec_gate.nx

buildroot/runtime/_hdl_build/nx_aescbc_extvec_gate.nx

8844 B201 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_aescbc_extvec_gate.nx -- ELEVENTH provably third-party-validated claim: AES-128 vs RFC 3602 Case #1. ★SEVENTH VECTOR DIALECT: `0x`-prefixed hex plus a QUOTED ASCII plaintext, with the three hex values distinguished only by ORDER on the page: Key : 0x06a9214036b8a15b512e03d534120006 IV : 0x3dafba429d9eb430b422da802c9fac41 Plaintext : "Single block msg" Ciphertext: 0xe353779c1079aeb82708942dbe77181a The labels are padded to different widths, so this reads them POSITIONALLY: after "Case #1", the 1st `0x` run is the key, the 2nd is the IV, the 3rd is the ciphertext, and the quoted run is the plaintext. ★Position, not label-matching, for the same reason the hexdump reader uses position: label spacing is cosmetic and drifts, ordering is structural. ⚠SCOPE, STATED HONESTLY: this gate composes CBC's FIRST-BLOCK RULE ITSELF (C = E(P xor IV)) because the primitives available are aes128_expand_key + aes128_encrypt_block. So what is externally validated is the AES-128 BLOCK CIPHER and the key schedule -- the published ciphertext cannot be produced without both being exactly right. It is NOT a validation of a full CBC mode implementation over multiple blocks or of padding; RFC 3602 Case #2+ would be needed for that, and this gate does not claim it. license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_sha256_wasm.nx nx_aes.nx nx_gate_verdict.nx nx_aescbc_extvec_gate.nx

imports: nx_syscalls.nxnx_sha256_wasm.nxnx_aes.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

main w sys_write 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 ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close nx_sha256_one_shot _h_set _sha256_compress _blk_word_be _rotr32 _h_get _sha256_k _h_set ↻ _h_get ↻ hexnib wb sys_write ↻ findfrom starts parsehex

structs

none

consts

none

functions

25func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: nnmain calls 1: sys_write
26func wb(b: *u8, n: i64) -> i64 { sys_write(1, b, n); return 0 }
called by 1: main calls 1: sys_write
28func nn(v: i64) -> i64
called by 1: main calls 3: wsys_mmapsys_write
42func hexnib(v: i64) -> i64 { if v < 10 { return 48 + v } return 87 + v }
called by 1: main
44func hexval(c: i64) -> i64
called by 1: parsehex
51func starts(b: *u8, n: i64, at: i64, s: *u8) -> i64
called by 1: findfrom
61func findfrom(b: *u8, n: i64, s: *u8, from: i64) -> i64
called by 1: main calls 1: starts
73func parsehex(b: *u8, n: i64, from: i64, out: *u8, want: i64) -> i64
called by 1: main calls 1: hexval
89func parseq(b: *u8, n: i64, from: i64, out: *u8, cap: i64) -> i64
called by 1: main
102func main() -> i64