Skip to content

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

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

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

@cpu cpu commented Jun 2, 2026

Copy link
Copy Markdown
Member

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

cpu commented Jun 2, 2026

Copy link
Copy Markdown
Member Author

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

@cpu

cpu commented Jun 26, 2026

Copy link
Copy Markdown
Member Author

I'll reopen this once I have a chance to extend it to other algs, and to implement the generator with the bits from #240

@cpu cpu closed this Jun 26, 2026
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