code wiki / (root) / nx_tls13_server_session_derive_hs_test.nx

nx_tls13_server_session_derive_hs_test.nx

buildroot/runtime/nx_tls13_server_session_derive_hs_test.nx

3085 B88 linesdepth 12pulls 31 transitivereach 0 importersview sourcekind gate/prooftopic tls13
docsdependenciesstructsconstsfunctions

about

nx_tls13_server_session_derive_hs_test.nx -- verify the server's handshake-secret derivation after ServerHello. Closed-form invariants: (a) Wrong state (INIT) -> BAD_STATE (b) After recv_ch + emit_sh + derive_hs_secrets: state advances to EE_SENT (c) handshake_secret is allocated (non-null) + 32 bytes non-zero (d) Calling derive again -> BAD_STATE (already past SH_SENT) expect_exit: 0 license_tier: ORIGINAL

dependencies 9 imports · 0 importers

nx_syscalls.nx nx_x25519.nx nx_x25519_ephemeral.nx nx_tls13.nx nx_tls13_hello.nx nx_tls13_server_session.nx nx_tls13_server_session_recv_ch.nx nx_tls13_server_session_emit_sh.nx nx_tls13_server_session_derive_hs. nx_tls13_server_session_derive

imports: nx_syscalls.nxnx_x25519.nxnx_x25519_ephemeral.nxnx_tls13.nxnx_tls13_hello.nxnx_tls13_server_session.nxnx_tls13_server_session_recv_ch.nxnx_tls13_server_session_emit_sh.nxnx_tls13_server_session_derive_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 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 nx_scratch_restore ↻ fe_cswap ↻ fe_invert nx_scratch_save ↻

structs

none

consts

none

functions

24func main() -> i64