code wiki / (root) / nx_turn_msgintegrity.nx

nx_turn_msgintegrity.nx

buildroot/runtime/nx_turn_msgintegrity.nx

5196 B134 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind orphan library
docsdependenciesstructsconstsfunctions

about

nx_turn_msgintegrity.nx -- TURN MESSAGE-INTEGRITY (RFC 5389 ยง15.4). Arc 4 Phase A.4 layer; split from nx_turn_relay.nx so the framing layer can be imported by x86_64 daemons without dragging in nx_hmac_sha1 (which uses the RISC-V-numbered nx_syscalls clan and would clash with nx_udp's nx_syscalls_x86_64 clan). See [[reference-syscall-module-duality-nx_syscalls-vs-syscalls]] for why this split is necessary. Daemons targeting x86_64 import nx_turn_relay (framing only); WASM-target smokes can import both since the JS shim resolves either clan. HMAC-SHA1 over the message, with key = SASLprep(password) for short-term creds. Long-term creds (MD5(user:realm:pw)) queued.

dependencies 2 imports · 0 importers

nx_turn_relay.nx nx_hmac_sha1.nx nx_turn_msgintegrity.nx

imports: nx_turn_relay.nxnx_hmac_sha1.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

24func nx_turn_append_message_integrity(buf: *u8, cur_len: i64,
49func nx_turn_verify_message_integrity(buf: *u8, n: i64,
96func nx_turn_message_integrity_test(scratch: *u8) -> i64