Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/SwiftNetwork/Utilities/CryptoWrappers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension AES.GCM {
#if DISABLE_SHIM_CRYPTO_SPAN_APIS
try seal(inPlace: &message, using: key, nonce: nonce, authenticating: authenticatedData, tag: &tag)
#else
#if canImport(CryptoKit, _version: 383.2.1)
#if canImport(CryptoKit) && canImport(CryptoKit, _version: 383.2.1)
if #available(macOS 27, iOS 27, watchOS 27, tvOS 27, visionOS 27, *) {
try seal(inPlace: &message, using: key, nonce: nonce, authenticating: authenticatedData, tag: &tag)
return
Expand All @@ -69,7 +69,7 @@ extension AES.GCM {
#if DISABLE_SHIM_CRYPTO_SPAN_APIS
try open(inPlace: &message, using: key, nonce: nonce, authenticating: authenticatedData, tag: tag)
#else
#if canImport(CryptoKit, _version: 383.2.1)
#if canImport(CryptoKit) && canImport(CryptoKit, _version: 383.2.1)
if #available(macOS 27, iOS 27, watchOS 27, tvOS 27, visionOS 27, *) {
try open(inPlace: &message, using: key, nonce: nonce, authenticating: authenticatedData, tag: tag)
return
Expand All @@ -93,7 +93,7 @@ extension ChaChaPoly {
#if DISABLE_SHIM_CRYPTO_SPAN_APIS
try seal(inPlace: &message, using: key, nonce: nonce, authenticating: authenticatedData, tag: &tag)
#else
#if canImport(CryptoKit, _version: 383.2.1)
#if canImport(CryptoKit) && canImport(CryptoKit, _version: 383.2.1)
if #available(macOS 27, iOS 27, watchOS 27, tvOS 27, visionOS 27, *) {
try seal(inPlace: &message, using: key, nonce: nonce, authenticating: authenticatedData, tag: &tag)
return
Expand All @@ -119,7 +119,7 @@ extension ChaChaPoly {
#if DISABLE_SHIM_CRYPTO_SPAN_APIS
try open(inPlace: &message, using: key, nonce: nonce, authenticating: authenticatedData, tag: tag)
#else
#if canImport(CryptoKit, _version: 383.2.1)
#if canImport(CryptoKit) && canImport(CryptoKit, _version: 383.2.1)
if #available(macOS 27, iOS 27, watchOS 27, tvOS 27, visionOS 27, *) {
try open(inPlace: &message, using: key, nonce: nonce, authenticating: authenticatedData, tag: tag)
return
Expand Down
Loading