code wiki / (root) / nx_tls13_client_test.nx

nx_tls13_client_test.nx

buildroot/runtime/nx_tls13_client_test.nx

9518 B231 linesdepth 10pulls 29 transitivereach 0 importersview sourcekind gate/prooftopic tls13
docsdependenciesstructsconstsfunctions

about

nx_tls13_client_test.nx -- in-memory end-to-end handshake dispatch. Synthesises an entire server-handshake message stream (EncryptedExtensions + Certificate + CertificateVerify + server Finished) and walks it through the state machine. Uses the shipped handshake-key orchestrator (RFC 8448 ยง3 inputs) to derive real AEAD keys + finished_keys, so the server_Finished MAC is computed correctly and the dispatcher must accept it. Then runs: - tampered SF MAC -> SF_BAD_MAC verdict - wrong message type at each state -> BAD_MSG_TYPE verdict - client_Finished structure + emit - record-layer encrypt/decrypt round-trip on our emitted bytes expect_exit: 0 license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_tls13.nx nx_tls13_record.nx nx_tls13_finished.nx nx_tls13_transcript.nx nx_tls13_handshake.nx nx_tls13_client.nx nx_tls13_client_test.nx

imports: nx_syscalls.nxnx_tls13.nxnx_tls13_record.nxnx_tls13_finished.nxnx_tls13_transcript.nxnx_tls13_handshake.nxnx_tls13_client.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 tls13_handshake_compute_ha sys_mmap ↻ 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 nx_scratch_restore ↻ fe_cswap ↻ fe_invert nx_scratch_save ↻ fe_alloc ↻

structs

none

consts

none

functions

27func main() -> i64