code wiki / (root) / nx_tls13_server_session_test.nx

nx_tls13_server_session_test.nx

buildroot/runtime/nx_tls13_server_session_test.nx

4213 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 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 ↻ nx_tls13_transcript_new sys_mmap ↻ sha256_init sys_mmap ↻ sha256_seed_allocated sha256_k sha384_init p256_ecdh_derive_priv sys_mmap ↻ sha256_digest sys_mmap ↻ sha256_init ↻ sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word sha256_final blk_set_byte ↻ sha256_compress ↻ sha256_destroy sys_munmap

structs

none

consts

none

functions

23func main() -> i64