Repository navigation
Add HQC, FrodoKEM, Falcon, Classic McEliece and BIKE to the cryptography registry - #1264
Conversation
A CycloneDX BOM that meets one of these algorithms has no family to name it, because algorithmFamily only accepts registered families. Add the four families and their enum entries. FrodoKEM and Classic McEliece reference ISO/IEC 18033-2:2006/Amd 2:2026 and the teams' documents, including the separate Classic McEliece pc definition. NIST has not published a standard for HQC or FN-DSA, so HQC references NIST IR 8545 and the team specification, and FN-DSA references NIST IR 8413. Add a 1.7 test BOM in JSON, XML and protobuf text format that uses the four families, so the enum entries are covered by the tests. Signed-off-by: John B Joseph <223714458+Johnbjoseph-cybersec@users.noreply.github.com>
NIST IR 8545 records that BIKE was not selected for standardization, so the family references its round 4 submission. It is included so that inventories can name existing deployments. It also adds BIKE to the 1.7 test BOM. This is a separate commit so it can be dropped without affecting the other families. Signed-off-by: John B Joseph <223714458+Johnbjoseph-cybersec@users.noreply.github.com>
bhess
left a comment
There was a problem hiding this comment.
Thanks @Johnbjoseph-cybersec for this PR. FrodoKEM and BIKE look good to me.
A few comments on the others:
I'd personally hold off adding FN-DSA because it's not specified yet. NIST IR 8413 is not a specification document, and draft-ietf-cose-falcon-05 defines the names by referring to FIPS 206, which isn't published yet. Instead I'd suggest to add Falcon (Falcon-512, Falcon-1024) with the round 3 specification https://falcon-sign.info/falcon.pdf. FN-DSA may still differ from Falcon, like ML-KEM did from Kyber, so we can add it as its own family once FIPS 206 is out.
For HQC I'd drop NIST IR 8545. It's a status report, not a specification, and it uses the round 4 names hqc-128/192/256 rather than HQC-1/3/5. The v5.1 specification is enough.
For Classic McEliece, the pc specification doesn't name any parameter sets, and the team's ISO page lists the pc names only from mceliece460896 on. Do you have a source for mceliece348864pc and mceliece348864pcf? Otherwise I'd drop these two, i.e. mceliece(460896|6688128|6960119|8192128)pc[f].
|
Thanks for the review. I've pushed 955c9cb with all three changes.
Prepared with AI assistance and reviewed before posting. John B Joseph, Co-founder & CPTO, Purplecop Security |
- Replace FN-DSA with Falcon (Falcon-512, Falcon-1024) from the round 3 specification v1.2; FN-DSA can be added once FIPS 206 is published. - HQC: drop NIST IR 8545, a status report that uses the round 4 names. - Classic McEliece: limit the pc and pcf forms to 460896 and up, the sets the team's ISO page lists. Signed-off-by: John B Joseph <223714458+Johnbjoseph-cybersec@users.noreply.github.com>
caa99d0 to
955c9cb
Compare
bhess
left a comment
There was a problem hiding this comment.
Thanks @Johnbjoseph-cybersec, LGTM!
|
@stevespringett this looks good to go, perhaps check if the enums need added explicitly or if this is done automatically. |
|
On the enum question: this PR already adds the five families to I edited the enum by hand rather than running the generator. Running it would also add ANSI-KDF, RSA-X931, SP800-56C, SSH-KDF and TLS-PRF, which are missing from the enum today and are unrelated to this change. The JSON test BOM fails schema validation without the new enum values, so the tests cover them. If you would prefer the enum regenerated in full, that would sit better in a separate change. Prepared with AI assistance. John B Joseph, Co-founder & CPTO, Purplecop Security |
As discussed in #1214, this adds HQC, FrodoKEM, Falcon, Classic McEliece and BIKE to the cryptography registry and to
algorithmFamiliesEnum. It is registry-only, like #1219, and has no status marker.hqc-128,hqc-192andhqc-256are not included because the specification has changed since then.fform) and the team's separate pc specification, which defines thepcvariant but names no parameter sets. Thepcandpcfnames cover 460896 and up, the sets the team's ISO page lists.mceliece348864andmceliece348864fcome from the main specification; the ISO page does not list them.BIKE-L1,BIKE-L3andBIKE-L5are the liboqs names. This is the last commit on its own, so it can be dropped.I have not read the ISO text. The statements that the amendment covers FrodoKEM and Classic McEliece come from the two teams' websites. NIST IR 8547 (October 2026) says the standard for HQC is still being developed, so those names may change.
Testing
I validated one minimal CycloneDX 1.7 BOM per family against
bom-1.7.schema.json:algorithmFamily must be equal to one of the allowed values.This checks family names; the schema does not enforce variant patterns.
cryptography-defs.jsonvalidates against its schema before and after.The new
valid-cryptography-pqc-families-1.7test BOM (JSON, XML, textproto) has one component per family.npm testfails on it without these registry entries and passes with them;mvn clean testpasses (771 tests). XML and protobuf takealgorithmFamilyas a plain string, so only the JSON copy checks the names. The textproto copy passesbuf convertagainstbom-1.7.proto.I edited the enum by hand. Running the generator would also add ANSI-KDF, RSA-X931, SP800-56C, SSH-KDF and TLS-PRF, which are already missing from it and unrelated to this change.
fixes #1263
John B Joseph, Co-founder & CPTO, Purplecop Security