code wiki / _hdl_build / nx_tls13_aead1302_gate.nx

nx_tls13_aead1302_gate.nx

buildroot/runtime/_hdl_build/nx_tls13_aead1302_gate.nx

3159 B63 linesdepth 7pulls 15 transitivereach 0 importersview sourcekind gate/prooftopic tls13
docsdependenciesstructsconstsfunctions

about

nx_tls13_aead1302_gate.nx -- proves the 0x1302 (AES-256-GCM-SHA384) AEAD dispatch is REAL. WHY: our TLS client ADVERTISED 0x1302 and returned BAD_CIPHER, so every server preferring it (nginx's default) was unreachable -- and the crawler then retired those hosts as if THEY were dead. This gate covers the record-layer half: dispatch by cipher_suite to nx_aes256_gcm. It is deliberately a ROUND-TRIP + NEGATIVE-CONTROL gate, not a hand-written golden: sealing then opening under the same key must return the plaintext, a tampered tag must REFUSE, and an unknown suite must still return BAD_CIPHER (-2). No invented vectors. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx nx_tls13_record.nx nx_tls13_aead1302_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nxnx_tls13_record.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gv_ctr sys_mmap ag_puts sys_write sys_mmap ↻ tls13_record_aead_seal nx_chacha20_poly1305_encry sys_mmap ↻ aead_derive_otk sys_mmap ↻ chacha20_block sys_mmap ↻ _chacha20_set_consts_key load_u32_le load_u32_le ↻ chacha20_perm sys_mmap ↻ chacha20_perm_core chacha20_encrypt sys_mmap ↻ _chacha20_set_consts_key ↻ load_u32_le ↻ chacha20_perm_core ↻ aead_build_mac_data aead_put_u64_le poly1305_mac sys_mmap ↻ poly1305_clamp p_load_u32_le p_store_u32_le nx_aes128_gcm_seal sys_mmap ↻ aes128_expand_key _aes_sbox _aes_rcon aes128_encrypt_block nx_ghash_reflect16 gh_byterev_bits gh_revtab

structs

none

consts

none

functions

14func ag_puts(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 1: main calls 1: sys_write
16func main(argc: i64, argv: *i64) -> i64