test: the zeroize probe also watches the expanded ML-DSA key (QA S-04)
The probe looked only for its 32-byte canary, i.e. the seeds; the key material that actually signs is derived from them and never contains it, so an unwiped copy of the expanded key went unseen (QA's mutation Q15). The probe allocator now also watches up to four further 32-byte patterns, held in atomics (dealloc must not allocate or lock). The test computes the canary key's FIPS 204 expanded encoding with ml-dsa itself and watches K (held raw inside ml-dsa's ExpandedSigningKey) and a 32-byte window of the encoded s1; controls show an unwiped copy is seen and a Zeroizing one is not; then building, signing, binding and dropping a canary SigningKey must free no block holding either. Q15 re-checked: a SigningKey field holding an unwiped Vec of ml.to_expanded() fails the probe at the new assertion (reverted). The ml-dsa rnd / rho'' / y stack residue is out of the probe's reach (stack, not heap) and is recorded as a gap.
This commit is contained in:
Generated
+1
@@ -36,6 +36,7 @@ version = "0.0.0"
|
||||
dependencies = [
|
||||
"arcanum",
|
||||
"chacha20",
|
||||
"ml-dsa",
|
||||
"rand_core",
|
||||
"zeroize",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user