nx_turn_msgintegrity.nx
buildroot/runtime/nx_turn_msgintegrity.nx
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
imports: nx_turn_relay.nxnx_hmac_sha1.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| none |
functions
| 24 | func nx_turn_append_message_integrity(buf: *u8, cur_len: i64, |
| 49 | func nx_turn_verify_message_integrity(buf: *u8, n: i64, |
| 96 | func nx_turn_message_integrity_test(scratch: *u8) -> i64 |