-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[release/10.0] Detect if RSA-384 is supported on the platform #120381
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
[release/10.0] Detect if RSA-384 is supported on the platform #120381
Conversation
There was a problem hiding this 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 backports a fix to detect RSA-384 support dynamically on platforms rather than relying on hardcoded Windows version checks. The change responds to a Windows Update that caused RSA with 384-bit modulus operations to fail, breaking existing tests.
Key changes:
- Replaces static Windows version-based RSA-384 support detection with dynamic runtime testing
- Centralizes RSA-384 support detection in a shared
PlatformSupportclass - Updates all RSA provider test classes to use the new centralized detection method
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/libraries/Common/tests/System/Security/Cryptography/PlatformSupport.cs |
Adds new IsRSA384Supported property with dynamic detection logic and test RSA-384 key parameters |
src/libraries/System.Security.Cryptography/tests/DefaultRSAProvider.cs |
Replaces hardcoded Windows version check with centralized platform support detection |
src/libraries/System.Security.Cryptography.Csp/tests/RSACryptoServiceProviderProvider.cs |
Updates from hardcoded true to use centralized platform support detection |
src/libraries/System.Security.Cryptography.Cng/tests/RSACngProvider.cs |
Replaces hardcoded Windows version check with centralized platform support detection |
|
Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones |
|
@artl93 Test-only change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup - test only change.
Backport of #120366 to release/10.0
/cc @bartonjs
Customer Impact
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
Testing
This is test only change. Verified failing tests started passing again.
Risk
None. Test-only change.