nx_tls12_parse_test.nx
buildroot/runtime/nx_tls12_parse_test.nx
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
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
structs
| none |
consts
| none |
functions
| 8 | func 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 |
| 9 | func tp_p(s: *u8) -> i64 { sys_write(1, s, tp_slen(s)); return 0 } |
| 10 | func tp_row(name: *u8, pass: i64) -> i64 |
| 16 | func main() -> i64 |