Skip to content

ML-KEM: MLKemCng and CNG properties #117060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 27, 2025
Merged

ML-KEM: MLKemCng and CNG properties #117060

merged 8 commits into from
Jun 27, 2025

Conversation

vcsjones
Copy link
Member

This pull request adds primitive functionality for MLKemCng in System.Security.Cryptography and Microsoft.Bcl.Cryptography.

Only basic encapsulation, decapsulation, and key operations are supported. Windows' ML-KEM "ncrypt" functionality is incomplete.

  • X.509 / PKCS#12 support for ML-KEM certificates is missing.

  • NCryptExportKey cannot perform a PKCS#8 export of an ML-KEM key handle. This means that we cannot perform encrypted exports. So key export functionality is currently limited to plaintext-exportable CNG keys.

    The managed PKCS#8 encoder that is used for MLKemImplementation is used by MLKemCng, for now, since we are able to export the blobs. As Windows' implementation progresses

Contributes to #116304

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@vcsjones vcsjones added this to the 10.0.0 milestone Jun 26, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@vcsjones vcsjones merged commit f720cbf into dotnet:main Jun 27, 2025
80 of 87 checks passed
@vcsjones vcsjones deleted the ml-kem-cng branch June 27, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants