Skip to content

Supported PKCS8 import formats for ML-KEM and ML-DSA #29

@twiss

Description

@twiss

The PKCS8 formats for ML-KEM and ML-DSA (defined in draft-ietf-lamps-kyber-certificates and draft-ietf-lamps-dilithium-certificates, respectively) define a CHOICE of three formats: seed, expandedKey, and both.

We should decide which of those formats should be supported when importing keys.

If we allow the expandedKey format, we run into an issue when later exporting the key, because we need the seed for that (regardless of whether the requested format is raw-seed, jwk or pcks8, since we specify that exported PKCS8 keys should be in seed-only format).

If we allow the both format, the implementation should perform a consistency check, as per section 8 and 8.2 of the respective drafts.

Allowing only the seed format may be simplest for implementations, but may pose difficulties for applications who can't choose the format of keys they receive.

It would be useful to know what most implementations of these drafts support, to inform this decision.

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