code wiki / _hdl_build / nx_quic_aead_test.nx

nx_quic_aead_test.nx

buildroot/runtime/_hdl_build/nx_quic_aead_test.nx

4636 B69 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic quic
docsdependenciesstructsconstsfunctions

about

nx_quic_aead_gate.nx -- RUNG 5b gate: QUIC AEAD packet protection. Exact vectors: nonce (RFC 9001 sec 5.3, A.2 -> fa044b2f42a3fd3b46fb255e) + header-protection mask (RFC 9001 sec 5.4.2 -> 437b9aec36) + AES-128-GCM seal->open round-trip + tamper rejection + HP apply/remove symmetry. Native, sovereign. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_quic_aead.nx nx_gate_emit_lib.nx nx_quic_aead_test.nx

imports: nx_quic_aead.nxnx_gate_emit_lib.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write set_hex hexnib quic_nonce g_check g_puts ↻ eq quic_hp_mask aes128_expand_key _aes_sbox _aes_rcon aes128_encrypt_block g_phex quic_seal quic_nonce ↻ nx_aes128_gcm_seal sys_mmap aes128_expand_key ↻ aes128_encrypt_block ↻ nx_ghash_reflect16 gh_byterev_bits gh_revtab sys_mmap ↻ gh_revbyte nx_ghash_mul_rev gh_clmul_core gh_scratch sys_mmap ↻ gh_clmul_mul256_acc gh_scratch ↻ gh_clmul_reduce256 gh_lshr nx_ghash_upd_rev gh_rev_scratch sys_mmap ↻ gh_byterev_bits ↻ gh_clmul_core ↻ nx_aes128_gcm_inc32

structs

none

consts

none

functions

8func hexnib(c: i64) -> i64 { if c>=48 { if c<=57 { return c-48 } } if c>=97 { if c<=102 { return c-87 } } return 0 }
called by 1: set_hex
9func set_hex(out: *u8, hex: *u8, nbytes: i64) -> i64 { var i: i64=0; while i<nbytes { out[i]=((hexnib(hex[i*2] as i64)<<4)|hexnib(hex[i*2+1] as i64)) as u8; i=i+1 } return 0 }
called by 1: main calls 1: hexnib
10func eq(a: *u8, b: *u8, n: i64) -> i64 { var i: i64=0; while i<n { if a[i]!=b[i] { return 0 } i=i+1 } return 1 }
called by 1: main
11func g_phex(b: *u8, n: i64) -> i64
called by 1: main
18func main() -> i64