[domistream] Crypto: aes-gcm without default features

default-features = false, features = ["aes", "alloc"]: aes-gcm's default
pulls in getrandom, which would make the OS RNG reachable inside a crate whose
randomness must only come through RandomSource. Approved by the build lead.
Cargo.lock also gains the test-only dev-dependencies (proptest, peak_alloc).
This commit is contained in:
2026-11-25 13:08:24 +01:00
parent b57e97a38b
commit 8d0bebfbc3
2 changed files with 79 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ workspace = true
# Crypto: RustCrypto only, pure Rust, all MIT OR Apache-2.0 (fits CPAL-1.0). Chosen in Phase A, used in Phase B.
[dependencies]
aes = "0.9" # AES-128 block cipher (pairing ECB)
aes-gcm = "0.11" # control and video AES-128-GCM
aes-gcm = { version = "0.11", default-features = false, features = ["aes", "alloc"] } # control and video AES-128-GCM; no getrandom, randomness only through RandomSource
cbc = "0.2" # audio AES-128-CBC
sha2 = "0.11" # pairing SHA-256
rsa = "0.10" # client key, PKCS#1 v1.5 SHA-256 sign/verify (crypto-bigint, constant time)