Repository navigation
Restore EC consistency checks for Linux - #137355
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security |
bartonjs
approved these changes
Nov 12, 2026
Member
Author
|
/backport to release/11.0 |
Contributor
|
Started backporting to |
2 of 4 tasks
ViveliDuCh
pushed a commit
that referenced
this pull request
Nov 14, 2026
Backport of #137355 to release/11.0 /cc @vcsjones ## Customer Impact - [x] Customer reported - [ ] Found internally Reported by a customer in #137336 In .NET 10 and earlier on Linux, inconsistent EC key parameters would raise an exception if the public and private key did not match. In .NET 11, EC keys where the private (`D`) and public (`Q`) parameters did not match no longer throws an exception. Customers would not be able to detect incorrect EC key parameters, and these incorrect parameters would behave unexpectedly. ## Regression - [x] Yes - [ ] No Regressed in #127190. ## Testing New tests were added. Existing tests show that other functionality is not regressed. ## Risk Low. Adds a missing key validation call. --------- Co-authored-by: Kevin Jones <[email protected]> Co-authored-by: Jeremy Barton <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In #127190 when moving off of
EC_KEYtoEVP_PKEYthe key consistency check was lost, so a D that does not match a Q would import. We need the EVP_PKEY equivalent ofEC_KEY_check_key.We don't have consistency behavior of this across all platforms, but this restores the behavior on Linux. We can fix the other platforms in a separate pull request so this one can be considered for backport, separately from other fixes.
Contributes to #137336.