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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ tls13_handshake_compute_ha sys_mmap ↻ tls13_early_secret hkdf_extract sys_mmap ↻ hmac_sha256 sys_mmap ↻ sha256_digest sys_mmap ↻ sha256_init sha256_update sha256_final sha256_destroy sys_munmap sha256_init ↻ sha256_update ↻ sha256_final ↻ tls13_derived sys_mmap ↻ tls13_derive_secret tls13_hkdf_expand_label sys_mmap ↻ tls13_build_hkdf_label hkdf_expand

structs

none

consts

none

functions

27func main() -> i64