code wiki / (root) / nx_tls13_client_session_recv_hs_test.nx

nx_tls13_client_session_recv_hs_test.nx

buildroot/runtime/nx_tls13_client_session_recv_hs_test.nx

5875 B133 linesdepth 18pulls 105 transitivereach 0 importersview sourcekind gate/prooftopic tls13
docsdependenciesstructsconstsfunctions

about

nx_tls13_client_session_recv_hs_test.nx -- KAT for step 3c.3: recv encrypted handshake records + dispatch loop. Full happy-path (synthetic encrypted record round-tripped end-to-end) is queued; the underlying nx_tls13_loopback_test already exercises the encrypt/decrypt round-trip + the underlying dispatcher's KAT covers state-machine logic. This KAT verifies the WRAPPER's contract surface: - state guards (must be in WAIT_EE..WAIT_SF) - record-length guards (too short = RECORD_FAIL) - record-decrypt verdict propagation (wrong key/tag = RECORD_FAIL) - server_seq increment on every call (even failures) - sealed verdict gate expect_exit: 0 license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_x509_trust_store.nx nx_tls13.nx nx_tls13_client_validate_certifica nx_tls13_client_session.nx nx_tls13_client_session_recv_sh.nx nx_tls13_client_session_recv_hs.nx nx_tls13_client_session_recv_h

imports: nx_syscalls.nxnx_x509_trust_store.nxnx_tls13.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_session.nxnx_tls13_client_session_recv_sh.nxnx_tls13_client_session_recv_hs.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap trust_store_alloc sys_mmap ↻ nx_tls13_client_session_ne sys_mmap ↻ x25519_keypair_public sys_mmap ↻ x25519_base_point x25519 nx_scratch_save nx_scratch_init sys_mmap ↻ nx_scratch nx_scratch_init ↻ nx_scratch_oom sys_write sys_exit sys_mmap ↻ fe_alloc nx_scratch ↻ fe_from_bytes fe_one fe_zero fe_zero ↻ fe_copy x25519_ladder_step fe_cswap nx_scratch_save ↻ fe_alloc ↻ fe_add fe_sq fe_mul fe_sub fe_mul ↻ fe_mul_a24 nx_scratch_save ↻ fe_alloc ↻ fe_mul ↻ nx_scratch_restore

structs

none

consts

none

functions

27func build_sh(out: *u8, server_random: *u8, server_pub: *u8) -> i64
called by 1: main
46func main() -> i64