Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[release/9.0-staging] Detect if RSA-384 is supported on the platform - #120382

#120382
Merged
bartonjs merged 1 commit into
dotnet:release/9.0-stagingdotnet/runtime:release/9.0-stagingfrom
vcsjones:backport-120366-to-release/9.0-stagingvcsjones/runtime:backport-120366-to-release/9.0-stagingCopy head branch name to clipboard
Oct 3, 2025
Merged

[release/9.0-staging] Detect if RSA-384 is supported on the platform#120382
bartonjs merged 1 commit into
dotnet:release/9.0-stagingdotnet/runtime:release/9.0-stagingfrom
vcsjones:backport-120366-to-release/9.0-stagingvcsjones/runtime:backport-120366-to-release/9.0-stagingCopy head branch name to clipboard

Conversation

@vcsjones

@vcsjones vcsjones commented Oct 3, 2025

Copy link
Copy Markdown
Member

Backport of #120366 to release/9.0-staging

/cc @bartonjs

Customer Impact

  • Customer reported
  • Found internally

This is test-only reaction to a change in Windows. Tests started failing in Windows because a Windows Update caused RSA with a 384-bit modulus to fail.

Regression

  • Yes
  • No

Testing

This is test only change. Verified failing tests started passing again.

Risk

None. Test-only change.

@vcsjones vcsjones added this to the 9.0.x milestone Oct 3, 2025
@vcsjones
vcsjones requested a review from bartonjs October 3, 2025 19:52
Copilot AI review requested due to automatic review settings October 3, 2025 19:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Backport test-only change to dynamically detect RSA-384 key support instead of using OS string heuristics, stabilizing previously failing cryptography tests on updated Windows versions.

  • Centralizes RSA-384 capability detection in PlatformSupport.IsRSA384Supported.
  • Replaces per-provider ad hoc logic with a shared Lazy-based capability probe.
  • Adds embedded 384-bit RSA key parameters for runtime import testing on Windows.

Reviewed Changes

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

File Description
System.Security.Cryptography/tests/DefaultRSAProvider.cs Replaces cached OSDescription heuristic with PlatformSupport.IsRSA384Supported.
System.Security.Cryptography.Csp/tests/RSACryptoServiceProviderProvider.cs Uses new shared RSA-384 support detection instead of unconditional true.
System.Security.Cryptography.Cng/tests/RSACngProvider.cs Removes duplicated heuristic logic in favor of centralized detection.
Common/tests/System/Security/Cryptography/PlatformSupport.cs Adds RSA-384 parameter set and Lazy-based runtime capability detection exposed via IsRSA384Supported.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@bartonjs bartonjs added the Servicing-approved Approved for servicing release label Oct 3, 2025
@bartonjs

bartonjs commented Oct 3, 2025

Copy link
Copy Markdown
Member

Test-only change, tell-mode.

@bartonjs
bartonjs enabled auto-merge (squash) October 3, 2025 21:48
@bartonjs
bartonjs merged commit e3fff88 into dotnet:release/9.0-staging Oct 3, 2025
85 of 87 checks passed
@vcsjones
vcsjones deleted the backport-120366-to-release/9.0-staging branch October 3, 2025 22:58
@vcsjones vcsjones added the test-enhancement Improvements of test source code label Oct 6, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Security Servicing-approved Approved for servicing release test-enhancement Improvements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.