code wiki / _hdl_build / nx_aescbc_extvec_gate.nx
nx_aescbc_extvec_gate.nx
buildroot/runtime/_hdl_build/nx_aescbc_extvec_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 25 | 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 } |
| 26 | func wb(b: *u8, n: i64) -> i64 { sys_write(1, b, n); return 0 } |
| 28 | func nn(v: i64) -> i64 |
| 42 | func hexnib(v: i64) -> i64 { if v < 10 { return 48 + v } return 87 + v } called by 1: main |
| 44 | func hexval(c: i64) -> i64 called by 1: parsehex |
| 51 | func starts(b: *u8, n: i64, at: i64, s: *u8) -> i64 called by 1: findfrom |
| 61 | func findfrom(b: *u8, n: i64, s: *u8, from: i64) -> i64 |
| 73 | func parsehex(b: *u8, n: i64, from: i64, out: *u8, want: i64) -> i64 |
| 89 | func parseq(b: *u8, n: i64, from: i64, out: *u8, cap: i64) -> i64 called by 1: main |
| 102 | func main() -> i64 |