Repository navigation
[release/11.0] Probe for EC explicit curve support when SymCrypt is present - #138078
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 |
This was referenced Nov 21, 2026
Open
steveisok
approved these changes
Nov 24, 2026
bartonjs
approved these changes
Nov 24, 2026
lewing
enabled auto-merge (squash)
November 24, 2026 19:49
Member
Author
|
/ba-g The TLS-resumption failure is tracked by #138096; the PR changes EC tests. |
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.
Fixes Issue N/A (test-only correction); contributes to #137121.
main PR #138026
Description
Backports e8e8e31 without adaptation. SymCrypt being installed does not mean OpenSSL selects it for EC operations. Probe explicit P-256 key import when SymCrypt is present and share the cached capability result across ECDsa/ECDH test providers. Changes are limited to three existing test files; no product code changes.
Customer Impact
No direct customer/product impact. Without this correction, cryptography tests can incorrectly classify explicit-curve support on Azure Linux hosts and containers, skipping supported coverage or selecting incorrect expectations.
Regression
Test capability-detection bug present on release/11.0. This is not a product regression fix; the introduction release was not established.
Testing
git diff --checkandgit show --format= --check HEAD: passed. Stable patch ID and all three resulting files match the source commit.dotnet build src/libraries/System.Security.Cryptography/tests/System.Security.Cryptography.Tests.csproj -p:TargetOS=linux -p:TargetArchitecture=arm64: failed (exit 1) because the local shared framework/targeting pack prerequisite is missing; compilation was not verified.No full clr+libs baseline, test execution, daily-build validation, or SymCrypt/OpenSSL runtime validation was run locally. PR CI is required for build and affected test verification.
Risk
Low product risk: test-only, exact upstream port, no shipping code or public API changes. The cached probe imports a public explicit P-256 key only when SymCrypt is detected; expected unsupported-import exceptions yield false. Apple-platform exclusions are preserved. Residual risk is limited to test capability classification and requires CI verification.
Package authoring no longer needed in .NET 9
IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.
Note
This PR description was generated by GitHub Copilot.