Fix RoundTrip_Export_Import_SPKI and fix typos for SPKI#119919
Fix RoundTrip_Export_Import_SPKI and fix typos for SPKI#119919PranavSenthilnathan merged 1 commit intodotnet:mainfrom
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.
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 |