Skip to content

Conversation

@aryan-25
Copy link
Contributor

Motivation:

swift-crypto currently fails to compile with TSAN enabled in 5.10 and 6.0 due to a TSAN error stemming from the use of consuming in the finalize() method of _CryptoExtras/AES/CMAC.

Modifications:

Like #384, the consuming finalize() method in _CryptoExtras/AES/CMAC is now wrapped inside a #if compiler(>=6.1) condition. A non-consuming variant is used otherwise.

Result:

swift-crypto can successfully compile with TSAN enabled in 5.10 and 6.0.

Motivation:
`swift-crypto` currently fails to compile with TSAN enabled in 5.10 and 6.0 due to a TSAN error stemming from the use of `consuming` in the `finalize()` method of `_CryptoExtras/AES/CMAC`.

Modifications:
Like apple#384, the `consuming finalize()` method in `_CryptoExtras/AES/CMAC` is now wrapped inside a `#if compiler(>=6.1)` condition. A non-consuming variant is used otherwise.

Result:
`swift-crypto` can successfully compile with TSAN enabled in 5.10 and 6.0.
@rnro rnro added the 🔨 semver/patch No public API change. label Aug 27, 2025
@Lukasa Lukasa merged commit d1c6b70 into apple:main Aug 27, 2025
41 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants