Skip to content

Add HPKE to algorithmFamiliesEnum#810

Merged
stevespringett merged 1 commit intoCycloneDX:masterfrom
Mehrn0ush:fix/add-hpke-algorithm-family
Feb 5, 2026
Merged

Add HPKE to algorithmFamiliesEnum#810
stevespringett merged 1 commit intoCycloneDX:masterfrom
Mehrn0ush:fix/add-hpke-algorithm-family

Conversation

@Mehrn0ush
Copy link
Contributor

Fixes #809

HPKE is defined in schema/cryptography-defs.json but missing from schema/cryptography-defs.schema.json#/definitions/algorithmFamiliesEnum. BOM 1.7 validates cryptoProperties.algorithmProperties.algorithmFamily against this enum, so valid HPKE usage fails schema validation.

This PR adds HPKE to algorithmFamiliesEnum (alphabetically between GOST and HC).

Signed-off-by: Mehrn0ush <mehrnoush.vaseghi@gmail.com>
@Mehrn0ush Mehrn0ush requested a review from a team as a code owner February 2, 2026 19:31
@Mehrn0ush
Copy link
Contributor Author

@bhess Hi — whenever you have a moment, could you please take a look at this PR?

I might be missing something, but it seems HPKE is present in schema/cryptography-defs.json while missing from cryptography-defs.schema.json#/definitions/algorithmFamiliesEnum, which causes valid BOM 1.7 cryptoProperties.algorithmProperties.algorithmFamily: "HPKE" to fail schema validation.

This PR adds HPKE to the enum (Fixes #809). Happy to adjust if there’s a better approach.
Thanks!

@bhess
Copy link
Contributor

bhess commented Feb 4, 2026

Hi @Mehrn0ush, thanks for the PR. Looks good.
If I remember correctly, the algorithmFamiliesEnum was populated automatically. Is that right, @stevespringett?

@stevespringett stevespringett added cap: cryptography Capability: Cryptography (CBOM) cap: cryptography-registry Capability: Cryptography Registry labels Feb 5, 2026
@stevespringett stevespringett merged commit 276380d into CycloneDX:master Feb 5, 2026
2 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cap: cryptography Capability: Cryptography (CBOM) cap: cryptography-registry Capability: Cryptography Registry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HPKE missing from algorithmFamiliesEnum

3 participants