docs: QA S-04, S-07, S-08, S-12 as gaps; the expanded key is 35 kB on the stack

- The expanded ML-DSA-65 key is 34,992 bytes on the stack (QA measured;
  A_hat's rows are boxed inside ml-dsa), not 64 kB, and it is exactly the
  secret part. src/sign.rs and docs/02_signatures.md corrected.
- S-04: ml-dsa's signing loop leaves rnd, rho'' and y on the stack; a
  leaked y gives s1. Recorded in docs/02 and docs/THREAT_MODEL.md, with the
  key-construction stack copy.
- S-07: under open question 1, the recommendation for Day 3: a separate,
  freshly generated composite identity, never a wrapped Tessera Ed25519
  seed (RFC 10073 3.1); from_bytes cannot detect reuse (also on its docs).
- S-08: verify_binding does not tie id to vk and has no serial; both are
  the caller's, with the Day 3 replay rule (QA E-07); also on its docs.
- S-12: decoded on 2026-11-26, none of the 9 ML-DSA-65 "modified z" sigVer
  cases at a7f283cd reaches the z infinity-norm bound (max 524,077 <
  524,092), so no ACVP case could be added; only Wycheproof covers it.
- S-05, S-10, S-11 noted under "As built" and gaps.
This commit is contained in:
2026-11-26 03:49:56 +01:00
parent 9f9318664f
commit 0b2480bf83
3 changed files with 54 additions and 4 deletions
+6
View File
@@ -61,3 +61,9 @@ Moves in Rust copy stack bytes, and `zeroize` cannot reach those copies; hash an
wiped only as far as the crates' `zeroize` features go. A process memory dump taken while Arcanum
runs may contain key material. That is accepted for v1 and is one more reason keys at rest live in
Custos or Tessera, not in Arcanum's callers.
v0.2.0 adds two stack exposures in signing, both accepted on the same terms: building a `SigningKey`
moves the 35 kB expanded ML-DSA key (s1, s2, t0 and their NTT forms) through the stack before it is
boxed, and `ml-dsa`'s signing loop (`try_raw_sign_mu`) leaves `rnd`, ρ'' and the mask y on the stack
unwiped after every signature. A leaked y, with the public z, gives c·s1 and so s1. Neither is
reachable from Arcanum, and neither is visible to the heap allocator probe (QA S-04, PR #2).