aacs: assert the zeroed-drive-cert test's two host certs differ

This commit is contained in:
Matthew Jackson
2026-09-27 00:28:28 -07:00
parent 8a231c4e1a
commit 44c655ad1e
+2
View File
@@ -4713,6 +4713,8 @@ pub(crate) mod tests {
emu.zero_drive_cert_reads = 1;
let first = dummy_cert();
let second = dummy_cert();
// dummy_cert draws a fresh random keypair, so the two certs differ.
assert_ne!(first.certificate, second.certificate);
let ch = run_handshake_v1(&mut emu, &[first, second.clone()])
.expect("the second cert authenticates");
assert_eq!(ch.volume_id, [0x5Au8; 16]);