code wiki / (root) / nx_quic_hs.nx

nx_quic_hs.nx

buildroot/runtime/nx_quic_hs.nx

2107 B47 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind tooltopic quic
docsdependenciesstructsconstsfunctions

about

nx_quic_hs.nx -- RUNG 6b of the sovereign QUIC transport: TLS 1.3 handshake-message framing (RFC 8446 sec 4) + CRYPTO-frame offset reassembly. In QUIC, TLS handshake messages do NOT use TLS records -- they are carried as a byte stream inside CRYPTO frames (R4), each fragment at an offset. R6b frames the messages (type + uint24 length + body) and reassembles fragments into the contiguous handshake buffer that the sovereign TLS state machine (R6d) consumes. No float. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_quic_hs.nx nx_quic_hs_test.nx

imports: nx_syscalls.nx

imported by: nx_quic_hs_test.nx

structs

none

consts

9const HS_CLIENT_HELLO: i64 = 1
10const HS_SERVER_HELLO: i64 = 2
11const HS_ENCRYPTED_EXTENSIONS: i64 = 8
12const HS_CERTIFICATE: i64 = 11
13const HS_CERTIFICATE_VERIFY: i64 = 15
14const HS_FINISHED: i64 = 20

functions

17func quic_hs_encode(out: *u8, msg_type: i64, body: *u8, body_len: i64) -> i64
called by 1: main
28func quic_hs_parse(buf: *u8, n: i64, info: *i64) -> i64
called by 1: main
40func quic_hs_reassemble(hsbuf: *u8, data: *u8, offset: i64, dlen: i64, hwm: i64) -> i64
called by 1: main
47func main() -> i64 { return 0 }