Skip to content

Conversation

@vcsjones
Copy link
Member

iOS / tvOS now have a minimum version of 13. We can simplify our source @available annotations where reasonable, as well as make the IsSupported logic simpler.

iOS / tvOS now have a minimum version of 13. We can simplify our source `@available` annotations where reasonable, as well as make the IsSupported logic simpler.
@vcsjones vcsjones added this to the 11.0.0 milestone Dec 14, 2025
@vcsjones vcsjones self-assigned this Dec 14, 2025
Copilot AI review requested due to automatic review settings December 14, 2025 21:37
@dotnet-policy-service
Copy link
Contributor

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

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

This PR simplifies availability annotations and runtime checks for ChaCha20Poly1305 and AES-GCM cryptographic APIs on Apple platforms, now that iOS/tvOS 13 is the minimum supported version.

Key Changes:

  • Removed @available(iOS 13, tvOS 13, *) attributes from Swift bindings since these versions are now the minimum
  • Simplified IsSupported properties to unconditionally return true for both algorithms

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/native/libs/System.Security.Cryptography.Native.Apple/pal_swiftbindings.swift Removed 11 @available(iOS 13, tvOS 13, *) annotations from protocols, extensions, and public functions now that these are the baseline versions
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ChaCha20Poly1305.Apple.cs Simplified IsSupported property to return true unconditionally and updated comment to reflect this change
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/AesGcm.Apple.cs Simplified IsSupported property to return true unconditionally and updated comment to reflect this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant