Skip to content

Malformed PKCS8/SPKI coverage for ML-DSA-44/65/87#243

Draft
cpu wants to merge 1 commit into
mainfrom
cpu-mldsa-pkcs8-pkix-suite
Draft

Malformed PKCS8/SPKI coverage for ML-DSA-44/65/87#243
cpu wants to merge 1 commit into
mainfrom
cpu-mldsa-pkcs8-pkix-suite

Conversation

@cpu
Copy link
Copy Markdown
Member

@cpu cpu commented Jun 2, 2026

Adds a schema + vectors that test a variety of malformed PKCS8/SPKI properties for ML-DSA.

Most of the tests are not specific to ML-DSA, and indeed the schema is meant to be general enough for testing other algorithms similarly using the same vector generation methodology. I started with ML-DSA because some of these cases came up while discussing ML-DSA support in the Go standard library and we realized landing vectors here could be a more helpful contribution to the wider community. I wanted to share this work for early feedback before extending it too much further, but did attempt to write the generator code in a way that would facilitate that. Assuming I'm not way off track I will look to extend this for ECDSA, Ed25519 and RSA when time permits.

The current WIP generator code is in the cpu-pkcs8-pkix-suite-wip branch of my fork (notably tools/pkixkeygen/). I will likely rewrite history there as I go, but will provide a stable ref here before merging these vectors.

Tests a variety of malformed PKCS8/SPKI properties for ML-DSA. Other
algorithms will be considered separately using the same schema/vector
generation methodology.
@cpu cpu self-assigned this Jun 2, 2026
@cpu
Copy link
Copy Markdown
Member Author

cpu commented Jun 2, 2026

@davidben This might be up your alley and I'd appreciate any feedback you were able to share 🙇

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.

1 participant