Skip to content

Add HPKE to algorithmFamiliesEnum#810

Open
Mehrn0ush wants to merge 1 commit intoCycloneDX:masterfrom
Mehrn0ush:fix/add-hpke-algorithm-family
Open

Add HPKE to algorithmFamiliesEnum#810
Mehrn0ush wants to merge 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HPKE missing from algorithmFamiliesEnum

2 participants