1 Commits

Author SHA1 Message Date
mnovak 9f9318664f docs: the stack a signing key needs, and a release test that pins it (QA S-11)
ML-DSA-65 keeps large vectors on the stack, and a thread that is too small
aborts the process; that is not an Error a caller can handle. Measured
here with tests/sig_stack.rs (Windows x86-64, a thread per run):

  release: 128 KiB overflows, 256/512/1024 KiB pass
  debug (deps at opt-level 2): 128 and 256 KiB overflow, 512/1024 KiB pass

SigningKey's docs now say so and advise at least 512 KiB for threads that
sign. generate_and_sign_fit_in_256_kib_of_stack pins the release figure
(ignored in debug builds); the four on_a_<n>_kib_stack measurements are
ignored and run by hand, one at a time.
2026-11-26 03:49:04 +01:00