Skip to content

Add equality to SlhDsaAlgorithm #117069

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 1 commit into from
Jun 27, 2025
Merged

Conversation

vcsjones
Copy link
Member

Same pull request as #116750 except for SLH-DSA.

@vcsjones vcsjones added this to the 10.0.0 milestone Jun 26, 2025
@Copilot Copilot AI review requested due to automatic review settings June 26, 2025 21:47
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.

Pull Request Overview

This PR adds equality support for SlhDsaAlgorithm by implementing IEquatable and providing overrides for Equals, GetHashCode, ToString, and the equality operators. It also introduces comprehensive unit tests to validate the equality behavior for various SlhDsaAlgorithm instances.

  • Implements equality members in both reference and implementation (common) projects.
  • Updates test cases to verify that equality, inequality, hash codes, and string representations function as expected.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/libraries/System.Security.Cryptography/ref/System.Security.Cryptography.cs Adds equality members to the SlhDsaAlgorithm ref class.
src/libraries/Common/tests/System/Security/Cryptography/AlgorithmImplementations/SlhDsa/SlhDsaAlgorithmTests.cs Introduces new tests to verify equality and inequality operators as well as GetHashCode and ToString implementations.
src/libraries/Common/src/System/Security/Cryptography/SlhDsaAlgorithm.cs Implements IEquatable with equality members based solely on the algorithm Name.

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 enabled auto-merge (squash) June 26, 2025 22:29
@vcsjones vcsjones merged commit 1c0d352 into dotnet:main Jun 27, 2025
83 of 89 checks passed
@vcsjones vcsjones deleted the slh-dsa-compare branch June 27, 2025 00:40
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