15
15
@_exported import CryptoKit
16
16
#else
17
17
#if !CRYPTO_IN_SWIFTPM_FORCE_BUILD_API
18
- @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , * )
18
+ @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , macCatalyst 13 , visionOS 1 . 0 , * )
19
19
typealias AESGCMImpl = CoreCryptoGCMImpl
20
20
import Security
21
21
#else
22
- @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , * )
22
+ @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , macCatalyst 13 , visionOS 1 . 0 , * )
23
23
typealias AESGCMImpl = OpenSSLAESGCMImpl
24
24
#endif
25
25
26
26
import Foundation
27
27
28
- @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , * )
28
+ @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , macCatalyst 13 , visionOS 1 . 0 , * )
29
29
extension AES {
30
30
/// The Advanced Encryption Standard (AES) Galois Counter Mode (GCM) cipher
31
31
/// suite.
32
- @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , * )
32
+ @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , macCatalyst 13 , visionOS 1 . 0 , * )
33
33
public enum GCM : Cipher {
34
34
static let tagByteCount = 16
35
35
static let defaultNonceByteCount = 12
@@ -95,7 +95,7 @@ extension AES {
95
95
}
96
96
}
97
97
98
- @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , * )
98
+ @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , macCatalyst 13 , visionOS 1 . 0 , * )
99
99
extension AES . GCM {
100
100
/// A secure container for your data that you can access using a cipher.
101
101
///
@@ -111,7 +111,7 @@ extension AES.GCM {
111
111
///
112
112
/// The receiver uses another instance of the same cipher, like the
113
113
/// ``open(_:using:)`` method, to open the box.
114
- @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , * )
114
+ @available ( macOS 10 . 15 , iOS 13 , watchOS 6 , tvOS 13 , macCatalyst 13 , visionOS 1 . 0 , * )
115
115
public struct SealedBox : AEADSealedBox {
116
116
private let combinedRepresentation : Data
117
117
private let nonceByteCount : Int
0 commit comments