code wiki / (root) / nx_quic_pkt.nx

nx_quic_pkt.nx

buildroot/runtime/nx_quic_pkt.nx

2039 B45 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind tooltopic quic
docsdependenciesstructsconstsfunctions

about

nx_quic_pkt.nx -- RUNG 2 of the sovereign QUIC transport: packet number encode/decode (RFC 9000 sec 17.1 + Appendix A.2 sample-encode / A.3 sample-decode). Packet numbers are sent truncated (1-4 bytes) and reconstructed from the largest received PN; getting this exactly right (incl. the wraparound windows) is mandatory for AEAD nonce derivation in R5. No float. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_quic_wire.nx nx_quic_pkt.nx nx_quic_pkt_test.nx

imports: nx_quic_wire.nx

imported by: nx_quic_pkt_test.nx

structs

none

consts

7const K_MAGIC_4611686018427387904: i64 = 4611686018427387904

functions

10func quic_pn_decode(largest_pn: i64, truncated_pn: i64, pn_nbits: i64) -> i64
called by 1: main
28func quic_pn_enc_len(full_pn: i64, largest_acked: i64) -> i64
called by 1: main
41func quic_pn_truncate(full_pn: i64, nbytes: i64) -> i64
called by 1: main
45func main() -> i64 { return 0 }