-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Fix RoundTrip_Export_Import_SPKI and fix typos for SPKI #119919
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
Fix RoundTrip_Export_Import_SPKI and fix typos for SPKI #119919
Conversation
PranavSenthilnathan
commented
Sep 19, 2025
- Change RoundTrip_Export_Import_SPKI to actually test SPKI instead of PKCS#8
- Change SubjectKeyPublicInfo to SubjectPublicKeyInfo
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 fixes the RoundTrip_Export_Import_SPKI test method to actually test SPKI (Subject Public Key Info) format instead of incorrectly testing PKCS#8 private key format, and corrects spelling from "SubjectKeyPublicInfo" to the proper "SubjectPublicKeyInfo" throughout the codebase.
- Fix the
RoundTrip_Export_Import_SPKItest to use SPKI export/import methods instead of PKCS#8 private key methods - Rename helper methods and delegates from
SubjectKeyPublicInfotoSubjectPublicKeyInfofor correct terminology - Update test assertions to verify that private key export throws an exception when importing only public key material
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| SlhDsaTestHelpers.cs | Rename helper methods and delegates from SubjectKeyPublicInfo to SubjectPublicKeyInfo |
| SlhDsaImplementationTests.cs | Fix RoundTrip_Export_Import_SPKI test logic and update method calls |
| SlhDsaFactoryTests.cs | Update method calls and test names to use correct SubjectPublicKeyInfo naming |
| MLDsaTestHelpers.cs | Rename helper methods and delegates from SubjectKeyPublicInfo to SubjectPublicKeyInfo |
| MLDsaImplementationTests.cs | Update method calls and test names to use correct SubjectPublicKeyInfo naming |
| CompositeMLDsaTestHelpers.cs | Rename helper methods and delegates from SubjectKeyPublicInfo to SubjectPublicKeyInfo |
| CompositeMLDsaImplementationTests.cs | Fix RoundTrip_Export_Import_SPKI test logic and update method calls |
| CompositeMLDsaFactoryTests.cs | Update method calls and test names to use correct SubjectPublicKeyInfo naming |
|
Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones |
|
/backport release/10.0 |
|
/backport to release/10.0 |
|
Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/18015555383 |