Skip to content

HPKE missing from algorithmFamiliesEnum #809

@Mehrn0ush

Description

@Mehrn0ush

Describe the defect

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

Additional context

Reproduction

  1. Copy tools/src/test/resources/1.7/valid-cryptography-implementation-1.7.json.
  2. Change cryptoProperties.algorithmProperties.algorithmFamily from AES to HPKE.
  3. Validate against schema/bom-1.7.schema.json.

Observed error:

/components/0/cryptoProperties/algorithmProperties/algorithmFamily: 'HPKE' is not one of [...]

Expected

HPKE should be accepted as a valid algorithm family.

Proposed fix

Add "HPKE" to algorithmFamiliesEnum (alphabetically between GOST and HC).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions