-
Notifications
You must be signed in to change notification settings - Fork 5k
ML-KEM: Change public API surface from API review #114710
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
Conversation
Note regarding the
|
1 similar comment
Note regarding the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the public API for the ML-KEM implementation to reflect recent API review recommendations.
- Removed several overloads for Decapsulate and Encapsulate.
- Introduced a new signature for Encapsulate that returns both ciphertext and shared secret via out parameters.
- Updated tests across libraries to use the new API surface.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/libraries/System.Security.Cryptography/ref/System.Security.Cryptography.cs | Updated public API signatures for ML-KEM. |
src/libraries/Common/tests/System/Security/Cryptography/MLKemContractTests.cs | Removed tests for removed overloads; added tests for the new API. |
src/libraries/Common/tests/System/Security/Cryptography/MLKemBaseTests.cs | Updated tests to align with the revised API, removing references to obsolete overloads. |
src/libraries/Common/src/System/Security/Cryptography/MLKem.cs | Refactored implementation of Encapsulate and ThrowIfDisposed to support the new API. |
Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones |
The reacts to the API changes made in #114453 (so far)
Diff:
Contributes to #113508