code wiki / (root) / nx_tls13_server_session_test.nx

nx_tls13_server_session_test.nx

buildroot/runtime/nx_tls13_server_session_test.nx

4211 B102 linesdepth 11pulls 22 transitivereach 0 importersview sourcekind gate/prooftopic tls13
docsdependenciesstructsconstsfunctions

about

nx_tls13_server_session_test.nx -- verify server session skeleton allocates correctly + state machine enum is well-formed. Closed-form invariants: (a) Null inputs return null session (b) Valid inputs return non-null session at INIT state (c) server_random + x25519_priv are copied into owned buffers (not aliased to caller's input) (d) x25519_pub is derived from priv (matches the known-answer relation: pub = X25519(priv, basepoint)) (e) All state constants 0..N-1 are valid; out-of-range invalid (f) Session-new yields all secret-buffer pointers initialised to either non-null (active fields) or null (queued fields) per the documented contract expect_exit: 0 license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_x25519.nx nx_tls13_server_session.nx nx_tls13_server_session_test.n

imports: nx_syscalls.nxnx_x25519.nxnx_tls13_server_session.nx

imported by: nobody (leaf or entry point)

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

main nx_tls13_server_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 nx_scratch_restore ↻ fe_cswap ↻ fe_invert

structs

none

consts

none

functions

23func main() -> i64