code wiki / (root) / nx_tls12_parse_test.nx

nx_tls12_parse_test.nx

buildroot/runtime/nx_tls12_parse_test.nx

4218 B89 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic tls12
docsdependenciesstructsconstsfunctions

about

nx_tls12_parse_test.nx -- KAT for the TLS 1.2 handshake parsers (rung 2, no network). Builds a synthetic ServerHello (cipher 0xC02F, random 0x50..0x6F) + ServerKeyExchange (secp256r1, 65-byte point starting 0x04, sig_alg 0x0401, 4-byte sig) and round-trips them through the parsers, asserting every extracted field. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_tls12_parse.nx nx_tls12_parse_test.nx

imports: nx_syscalls.nxnx_tls12_parse.nx

imported by: nobody (leaf or entry point)

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

main tp_p sys_write tp_slen sys_mmap tls12_parse_server_hello _t12_u16 tp_row tp_p ↻ tls12_parse_server_key_exc _t12_u16 ↻ tls12_skx_signed_data sys_write ↻

structs

none

consts

none

functions

8func tp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: tp_p
9func tp_p(s: *u8) -> i64 { sys_write(1, s, tp_slen(s)); return 0 }
called by 2: tp_rowmain calls 2: sys_writetp_slen
10func tp_row(name: *u8, pass: i64) -> i64
called by 1: main calls 1: tp_p
16func main() -> i64