Skip to content

[release/11.0] Probe for EC explicit curve support when SymCrypt is present - #138078

Merged
lewing merged 1 commit into
release/11.0from
lewing-backport-138026-release-11
Nov 24, 2026
Merged

lewing merged 1 commit into
release/11.0from
lewing-backport-138026-release-11

Conversation

@lewing

@lewing lewing commented Nov 21, 2026

Copy link
Copy Markdown
Member

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 --check and git 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.

…resent

Backport of #138026 (e8e8e31). Test-only; no product changes.

Co-authored-by: Copilot App <[email protected]>
@lewing lewing added area-System.Security test-bug Problem in test source code (most likely) labels Nov 21, 2026
@azure-pipelines

Copy link
Copy Markdown
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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security
See info in area-owners.md if you want to be subscribed.

@lewing
lewing enabled auto-merge (squash) November 24, 2026 19:49
@lewing

lewing commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

/ba-g The TLS-resumption failure is tracked by #138096; the PR changes EC tests.

@lewing
lewing merged commit 2db69ab into release/11.0 Nov 24, 2026
104 of 110 checks passed
@lewing
lewing deleted the lewing-backport-138026-release-11 branch November 24, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Security Servicing-approved Approved for servicing release test-bug Problem in test source code (most likely)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants