Skip to content

Add ML-DSA signature and public key algorithm OID constants#14884

Merged
reaperhulk merged 2 commits into
mainfrom
claude/add-ml-dsa-oids
May 21, 2026
Merged

Add ML-DSA signature and public key algorithm OID constants#14884
reaperhulk merged 2 commits into
mainfrom
claude/add-ml-dsa-oids

Conversation

@alex
Copy link
Copy Markdown
Member

@alex alex commented May 21, 2026

Summary

Adds the ML-DSA (FIPS 204) algorithm OID constants to the public OID classes:

  • SignatureAlgorithmOID.ML_DSA_44 / ML_DSA_65 / ML_DSA_87
  • PublicKeyAlgorithmOID.ML_DSA_44 / ML_DSA_65 / ML_DSA_87

These correspond to the dotted strings 2.16.840.1.101.3.4.3.17, .18, and .19. The change also registers their human-readable names in _OID_NAMES and documents them in the X.509 reference.

This is a small, purely-additive precursor split out from the larger work to support ML-DSA keys/signatures in X.509 (certificates, CSRs, CRLs), so the constants can be reviewed on their own.

Test plan

  • SignatureAlgorithmOID.ML_DSA_{44,65,87} and PublicKeyAlgorithmOID.ML_DSA_{44,65,87} resolve to the correct dotted strings
  • The new OIDs have _OID_NAMES entries (ML-DSA-44/-65/-87)
  • ruff lint/format pass

https://claude.ai/code/session_01ENDmAD4rsLTkCw1QG9txBL


Generated by Claude Code

Add ML_DSA_44/65/87 to SignatureAlgorithmOID and PublicKeyAlgorithmOID,
along with their human-readable names and documentation.

https://claude.ai/code/session_01ENDmAD4rsLTkCw1QG9txBL
Comment thread CHANGELOG.rst Outdated
We now only publish ``arm64`` wheels for macOS.
* **BACKWARDS INCOMPATIBLE:** Support for 32-bit Windows has been removed.
Users should move to a 64-bit Python installation.
* Added :attr:`~cryptography.x509.oid.SignatureAlgorithmOID.ML_DSA_44`,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these need changelog docs

Per review feedback, the new OID constants don't need a changelog note.

https://claude.ai/code/session_01ENDmAD4rsLTkCw1QG9txBL
@reaperhulk reaperhulk merged commit 910e4a0 into main May 21, 2026
63 checks passed
@reaperhulk reaperhulk deleted the claude/add-ml-dsa-oids branch May 21, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants