Expand description
ML-DSA (FIPS 204) object sizes (bytes) shared across the workspace.
Single source of truth consumed by lib-q-core (SecurityConstants). The real
implementation crate, lib-q-ml-dsa, computes its own sizes from private const fn
formulas (signing_key_size / verification_key_size / signature_size in
src/constants.rs) and carries a conformance test asserting equality against the
constants here.
lib-q-types must not depend on lib-q-ml-dsa (that would cycle back through
lib-q-core, which lib-q-ml-dsa depends on), so the FIPS 204 sizes are listed here as
plain literals rather than re-derived from the formula.
Constantsยง
- MLDS
A44_ PUBLIC_ KEY_ BYTES - ML-DSA-44 public (verification) key length.
- MLDS
A44_ SECRET_ KEY_ BYTES - ML-DSA-44 secret (signing) key length.
- MLDS
A44_ SIGNATURE_ BYTES - ML-DSA-44 signature length.
- MLDS
A65_ PUBLIC_ KEY_ BYTES - ML-DSA-65 public (verification) key length.
- MLDS
A65_ SECRET_ KEY_ BYTES - ML-DSA-65 secret (signing) key length.
- MLDS
A65_ SIGNATURE_ BYTES - ML-DSA-65 signature length.
- MLDS
A87_ PUBLIC_ KEY_ BYTES - ML-DSA-87 public (verification) key length.
- MLDS
A87_ SECRET_ KEY_ BYTES - ML-DSA-87 secret (signing) key length.
- MLDS
A87_ SIGNATURE_ BYTES - ML-DSA-87 signature length.