nx_quic_pkt.nx
buildroot/runtime/nx_quic_pkt.nx
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
imports: nx_quic_wire.nx
imported by: nx_quic_pkt_test.nx
structs
| none |
consts
| 7 | const K_MAGIC_4611686018427387904: i64 = 4611686018427387904 |
functions
| 10 | func quic_pn_decode(largest_pn: i64, truncated_pn: i64, pn_nbits: i64) -> i64 called by 1: main |
| 28 | func quic_pn_enc_len(full_pn: i64, largest_acked: i64) -> i64 called by 1: main |
| 41 | func quic_pn_truncate(full_pn: i64, nbytes: i64) -> i64 called by 1: main |
| 45 | func main() -> i64 { return 0 } |