[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).
This commit is contained in:
2026-11-25 12:51:00 +01:00
parent 6370e0a4bc
commit 7326767f37
4 changed files with 1192 additions and 0 deletions
+6
View File
@@ -21,3 +21,9 @@ rsa = "0.10" # client key, PKCS#1 v1.5 SHA-256 sign/verify (crypto-bigin
x509-cert = { version = "0.3", features = ["builder", "pem"] } # client certificate, host certificate parsing
rand_core = "0.10" # adapter from our RandomSource to the RustCrypto RNG traits
zeroize = "1.8" # wipe keys on drop
# Tests only. proptest without fork/timeout (no subprocesses, no threads); peak_alloc (MIT) is a counting global
# allocator, so tests can check that parsers never allocate past their caps without any unsafe code of ours.
[dev-dependencies]
proptest = { version = "1.12", default-features = false, features = ["std"] }
peak_alloc = "0.3"