[Bug] Signature registry: SLH-DSA-128s and SLH-DSA-128f are not FIPS 205 parameter sets, and no PQC entry fixes pure versus pre-hash or the context string

Open
#566 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
43/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
json, typescript

Research direction

Read Section 10.1 and compare its PQC rows with FIPS 204 and FIPS 205. Check the enum values in specification/v0.1.0/request-envelope.json and specification/v0.1.0/handshake.json, plus docs/acs.md, docs/spec/conformance.md, and docs/topics/faq.md; PR #564 touches the same rows and enums. Done means the registered names and signing mode/context are consistent across the specification, enums, and docs, with a test covering valid parameter-set names; coordinate timing around PR #564 and the v0.1.0 wire-version rule.

Written by the indexing model from the issue text.

Description

Checked on integration on 16 Nov 2026. This is about the PQC rows in Section 10.1 of the Instrument specification and the two enums that copy them (Signature.algorithm in specification/v0.1.0/request-envelope.json and signature_algorithms_supported in specification/v0.1.0/handshake.json).

1. SLH-DSA-128s and SLH-DSA-128f are not parameter sets. FIPS 205 Section 11 approves 12 parameter sets, and "Each parameter set name indicates the hash function family (SHA2 or SHAKE)". Table 2 lists SLH-DSA-SHA2-128s and SLH-DSA-SHAKE-128s (both 7,856-byte signatures, which matches the registry's "~7.8 KB"), and the same pair for 128f. The two families instantiate the hash functions differently (Sections 11.1 and 11.2), so a Guardian built on the SHA2 set and a client built on the SHAKE set can both advertise SLH-DSA-128s and still reject each other's signatures. docs/acs.md, docs/spec/conformance.md and docs/topics/faq.md use the same short name.

2. No PQC entry says pure or pre-hash, or which context string. FIPS 204 (Section 5.4) and FIPS 205 (Section 10.2) each define a pure and a pre-hash signing function plus a context string of up to 255 bytes, and both say the identifier "should indicate" pure or pre-hash, and that a non-empty context string should be indicated "by the signature's identifier or the application". The domain separator exists "to prevent pre-hash signatures from verifying as pure signatures and vice versa" (FIPS 205 Section 10.2.1). Section 10 fixes the message (the JCS bytes) but not the mode or the context, so two conforming ML-DSA-65 implementations can still disagree.

Suggested fix (small):

  • Register the FIPS 205 names: SLH-DSA-SHA2-128s and SLH-DSA-SHAKE-128s, and the 128f pair, or one family only if the leads prefer fewer options.
  • Add one sentence to Section 10.1: ML-DSA-* and SLH-DSA-* are the pure algorithms (FIPS 204 Algorithm 2, FIPS 205 Algorithm 22) with an empty context string; HashML-DSA and HashSLH-DSA are not registered. For ML-DSA this is exactly RFC 9964, the source of ML-DSA-44/65/87 in the IANA JOSE registry: "The ctx parameter MUST be the empty string", and it "does not specify algorithms for use with HashML-DSA".

Sequencing. PR #564 rewrites the same registry rows and enums, and its test checks for SLH-DSA-128s, so this should land after it. Renaming enum values changes the v0.1.0 wire, so, like #457, it may wait on the 0.x version rule (#32, item 5).

If a lead accepts this, I can send the PR against integration with DCO sign-off: the registry rows, both enums, the three docs pages, and a test that every PQC enum value is a FIPS 204 or FIPS 205 parameter-set name.

Prepared with AI assistance and reviewed before posting.

John B Joseph, Co-founder & CPTO, Purplecop Security

Dominant language
TypeScript
Stars
183
Forks
56
Avg merge
3d 1h
Merged PRs (30d)
67

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenAI-Security-Project/agent-control-standard

All issues in GenAI-Security-Project/agent-control-standard

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.