Skip to content

Conversation

@PranavSenthilnathan
Copy link
Member

  • Change RoundTrip_Export_Import_SPKI to actually test SPKI instead of PKCS#8
  • Change SubjectKeyPublicInfo to SubjectPublicKeyInfo

@PranavSenthilnathan PranavSenthilnathan added this to the 10.0.0 milestone Sep 19, 2025
@PranavSenthilnathan PranavSenthilnathan self-assigned this Sep 19, 2025
Copilot AI review requested due to automatic review settings September 19, 2025 22:43
Copy link
Contributor

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.

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_SPKI test to use SPKI export/import methods instead of PKCS#8 private key methods
  • Rename helper methods and delegates from SubjectKeyPublicInfo to SubjectPublicKeyInfo for 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

@dotnet-policy-service
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.

@PranavSenthilnathan PranavSenthilnathan merged commit 51f9b6f into dotnet:main Sep 22, 2025
90 checks passed
@PranavSenthilnathan PranavSenthilnathan deleted the fix-spki-tests branch September 22, 2025 18:14
@PranavSenthilnathan
Copy link
Member Author

/backport release/10.0

@PranavSenthilnathan
Copy link
Member Author

/backport to release/10.0

@github-actions
Copy link
Contributor

Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/18015555383

@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants