disc: redact Debug for AacsState/Key/HandshakeResult (test-guarded)

AacsState (public via Disc.aacs) and Key (the decrypt_with key-transport enum)
are crate-root re-exported and carried VUK/unit/read-data keys + volume id on
#[derive(Debug)]; HandshakeResult carried the VID + AACS 2.0 bus key. Manual
Debug impls print shape only, guarded by red->green tests.
This commit is contained in:
Matthew Jackson
2026-07-17 21:10:51 -07:00
parent 3546648faa
commit 2263d2cc4e
6 changed files with 127 additions and 8 deletions
+4 -1
View File
@@ -498,7 +498,10 @@ mod tests {
};
let dbg = format!("{rk:?}");
assert!(!dbg.contains("213"), "ResolvedKeys leaked keys: {dbg}");
assert!(dbg.contains("redacted"), "ResolvedKeys missing marker: {dbg}");
assert!(
dbg.contains("redacted"),
"ResolvedKeys missing marker: {dbg}"
);
}
/// Audit #5: the `major` / `from_major` mapping is load-bearing for the