Commit Graph

24 Commits

Author SHA1 Message Date
mnovak fea864d16e [domistream] Tests: control frames, replay and messages
Nonce layout (seq LE, 6 zero, direction, 'C'), seal against .NET AesGcm
vectors, every tampered byte, wrong direction and key, lying length fields.
ControlStream drops replayed, older, reflected and forged frames and refuses
seq 0 after u32::MAX. Host message layouts and client message encoding.
2026-11-25 12:51:03 +01:00
mnovak 38a455a717 [domistream] Tests: ENet codec and client peer
Byte vectors built from the PROTOCOL.md 3.1 field definitions, every command
size, truncation, compressed and unknown commands, 32/33 commands and
4096/4097 bytes. Client: handshake, reliable sequence past 0xFFFF -> 0,
duplicates, far-future and far-past, lying fragments, retransmission,
timeout and disconnect.
2026-11-25 12:51:03 +01:00
mnovak e4ca1509c8 [domistream] Tests: RTSP parsers, framer, SDP and client
Bad start lines, header floods, line cap, lying Content-Length (over, under,
past the cap, past u64), 64 KiB+1 in the framer, chunking invariance,
surround-params against RFC 7845, ANNOUNCE intersection, and the client state
machine with hostile answers.
2026-11-25 12:51:03 +01:00
mnovak d0fe9a906c [domistream] Tests: pairing state machine against recorded vectors
Walks every state with a recorded transcript (fixtures from tools/vectors).
Wrong PIN, wrong hash, wrong cert, rogue and flipped signatures, wrong sizes,
out-of-order, replayed and cross-session answers all end in Failed(reason);
Paired cannot be reached by skipping a step. Crypto helpers, certificates,
identities and the PIN against the same vectors.
2026-11-25 12:51:01 +01:00
mnovak b261d7ddc9 [domistream] Tests: hostile HTTP and XML input
XML reader, serverinfo, applist, launch and status answers: empty, 1 byte,
max-1, max, max+1, huge; depth bombs, element, attribute and text caps,
entities, DTD and billion laughs, namespaces. Request builders refuse bad ids
and query injection. proptest round trip of generated XML trees.
2026-11-25 12:51:01 +01:00
mnovak 9d94b66975 [domistream] Tests: sans-I/O guard and secret hygiene
Fails if src/ uses std::net, Instant::now, SystemTime::now, std::thread,
std::fs, processes, env reads or OS randomness (comments stripped, grouped
std imports caught). Checks forbid(unsafe_code) and that Debug never prints
rikey, the PIN or the private key.
2026-11-25 12:51:00 +01:00
mnovak 7326767f37 [domistream] Tests: vector generator and shared test helpers
tools/vectors/gen_vectors.py makes the crypto vectors with tools independent of
RustCrypto: Python hashlib (SHA-256), the OpenSSL 3.5 CLI (RSA-2048 test-only
keys, X.509 certs, PKCS#1 v1.5 SHA-256 signatures, AES-128-ECB -nopad,
AES-128-CBC) and .NET 10 AesGcm (gcm_vectors.cs). Output goes to
crates/domistream/tests/fixtures (text only); not generated in this commit.

tests/common: seeded and scripted RandomSource, fixture reader, an independent
GF(2^8)/0x11D reference with Cauchy matrices, and test hosts that packetize
video (PROTOCOL.md 5.2-5.3) and audio (6.2-6.4).

Dev-dependencies: proptest (std only, no fork/timeout) and peak_alloc (MIT,
counting allocator for the allocation-cap test).
2026-11-25 12:51:00 +01:00
mnovak 6370e0a4bc [repo] Fuzz: note that only the SanitizerCoverage build links on Windows 2026-11-25 12:01:19 +01:00
mnovak c83fce11e9 [repo] README: repository layout 2026-11-25 12:01:10 +01:00
mnovak 3ade60d0b4 [repo] Fuzz: one libFuzzer target per parser, own workspace, Windows MSVC setup from Via 2026-11-25 12:01:09 +01:00
mnovak 31d1fc3655 [domistream] Audio API: packet parser, CBC decryption, 4+2 FEC depacketizer 2026-11-25 11:48:04 +01:00
mnovak b4a21dfc10 [domistream] Video API: packet parser, frame header, decryption, depacketizer with FEC 2026-11-25 11:47:55 +01:00
mnovak e7c69ac956 [domistream] RTP and FEC API: RTP header parser, Reed-Solomon over GF(2^8) 2026-11-25 11:47:42 +01:00
mnovak c01f980292 [domistream] Control API: AES-GCM frame, control messages, control stream 2026-11-25 11:47:25 +01:00
mnovak 213f87b871 [domistream] Input API: mouse, keyboard and gamepad events with their INPUT_DATA codec 2026-11-25 11:46:55 +01:00
mnovak fc5b0b116c [domistream] ENet API: sans-I/O 1.3 datagram codec and client peer 2026-11-25 11:46:37 +01:00
mnovak 024fe14ca6 [domistream] RTSP API: message codec, stream framer, SDP, negotiation state machine 2026-11-25 11:46:10 +01:00
mnovak 736a8f42b0 [domistream] Pairing API: PIN handshake state machine, pure crypto steps, client identity, pinned host cert 2026-11-25 11:45:57 +01:00
mnovak 0188ffba97 [domistream] HTTP API: serverinfo, applist, launch/resume/cancel requests and capped XML parsers 2026-11-25 11:45:30 +01:00
mnovak cb8e7ed4c3 [repo] Workspace: one crate, forbid(unsafe), no-panic lints, RustCrypto picked; Error, Instant, RandomSource, SessionKeys 2026-11-25 11:45:23 +01:00
mnovak 184f4024c7 [repo] Protocol: GameStream client side from the Wolf docs, with every UNKNOWN listed 2026-11-25 11:26:31 +01:00
mnovak 5148abfcc3 [repo] Open point 2: Wolf docs licence, Rust ENet crates, own sans-I/O ENet recommended 2026-11-25 11:26:31 +01:00
mnovak b53b9e0be1 [repo] Clean room: allowed and forbidden sources, GPL-provenance rule, source log 2026-11-25 11:26:30 +01:00
mnovak 526dc80975 [repo] Start: CPAL-1.0 licence with the Exhibit B credit, README, CLAUDE.md 2026-11-25 11:05:29 +01:00