Skip to content

Fix ChaCha20Poly1305 IsSupported test on Azure Linux 4#127618

Merged
vcsjones merged 1 commit intodotnet:mainfrom
vcsjones:azl4-fix-chacha-detection
Apr 30, 2026
Merged

Fix ChaCha20Poly1305 IsSupported test on Azure Linux 4#127618
vcsjones merged 1 commit intodotnet:mainfrom
vcsjones:azl4-fix-chacha-detection

Conversation

@vcsjones
Copy link
Copy Markdown
Member

Azure Linux 4 re-enabled ChaCha20Poly1305.

The output from openssl list -cipher-algorithms includes ChaCha20-Poly1305 @ default.

Found in #127613.

@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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the ChaCha20Poly1305 IsSupported test expectations to reflect that Azure Linux 4 re-enabled the ChaCha20-Poly1305 cipher in its OpenSSL build, while Azure Linux 3 kept it disabled. This keeps the cryptography test suite aligned with the new Azure Linux 4 Helix coverage being added elsewhere.

Changes:

  • Adjust ChaCha20Poly1305Tests.CheckIsSupported to expect support on Azure Linux 4+ but not on Azure Linux 3.
  • Add PlatformDetection.IsAzureLinux4OrHigher to enable version-specific expectations in tests.
Show a summary per file
File Description
src/libraries/System.Security.Cryptography/tests/ChaCha20Poly1305Tests.cs Updates expected IsSupported behavior for Azure Linux 3 vs 4+.
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Unix.cs Adds a new distro/version helper for Azure Linux 4+.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

@vcsjones
Copy link
Copy Markdown
Member Author

/ba-g deadletter, test that was impacted by this change passed on all legs.

@vcsjones vcsjones merged commit e971c0a into dotnet:main Apr 30, 2026
104 of 107 checks passed
@vcsjones vcsjones deleted the azl4-fix-chacha-detection branch April 30, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Security test-enhancement Improvements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants