STUN (RFC 8489)

View Source
IDSectionRequirementModuleTestStatus
STUN-15Header: two zero bits, 14-bit type, length multiple of 4, magic cookiewebrtc_stunwebrtcstun_tests:malformed_testUnit tested
STUN-25Method/class bit interleaving for all classeswebrtc_stunall_methods_and_classes_testUnit tested
STUN-314Attributes padded to 4 bytes, padding content ignored on receivewebrtc_stunrequest_decode_test (RFC 5769 pads with 0x20)Unit tested
STUN-414.2XOR-MAPPED-ADDRESS for IPv4 and IPv6webrtc_stunipv4_response_test, ipv6_response_testUnit tested
STUN-514.5MESSAGE-INTEGRITY HMAC-SHA1 with adjusted lengthwebrtc_stunrequest_decode_test, reencode_ipv4_response_testUnit tested
STUN-614.6MESSAGE-INTEGRITY-SHA256, preferred when presentwebrtc_stunroundtrip_all_attrs_testUnit tested
STUN-714.5Attributes after MESSAGE-INTEGRITY ignored, except MI-SHA256 and FINGERPRINTwebrtc_stunattrs_after_integrity_ignored_testUnit tested
STUN-814.7FINGERPRINT is CRC-32 xor 0x5354554e, last attributewebrtc_stunbad_fingerprint_test, fingerprint_not_last_testUnit tested
STUN-99.2.2Long-term credential key MD5(user:realm:pass)webrtc_stunlong_term_testUnit tested
STUN-109.2.2Long-term key SHA-256 variant (PASSWORD-ALGORITHM)webrtc_stunImplemented, untested
STUN-116.3.1, 14Unknown comprehension-required attributes reported (for 420)webrtc_stununknown_comprehension_required_testUnit tested
STUN-1214.3USERNAME < 513 bytes; REALM, NONCE, SOFTWARE, reason <= 763 byteswebrtc_stunImplemented, untested
STUN-139.2.4Integrity comparison is constant timewebrtc_stun(crypto:hash_equals)Implemented, untested
STUN-146.2.1Request retransmission: RTO (default 500 ms, cached per server from RTT samples with Karn's rule), doubling, Rc=7, Rm=16, all configurablewebrtc_stun_txwebrtc_stun_tx_tests:default_schedule_test, custom_parameters_test, rto_cache_test, karn_no_rtt_after_retransmit_testUnit tested
STUN-159.1Short-term credential mechanism (used by ICE): USERNAME and MESSAGE-INTEGRITY required (400), unknown username or bad integrity (401), responses protected with the same password, unprotected or forged responses discardedwebrtc_ice_responder, webrtc_ice_conncheckwebrtcice_agent_tests:reject_test, valid_check_test, forged_response_ignored_testUnit tested
STUN-169.1.3SASLprep/OpaqueString of passwordsNon-compliant / known limitation: passwords are used as given. ICE passwords are ASCII (RFC 8839 ice-char) so ICE is unaffected.