Skip to content

Commit d24f5fa

Browse files
Copilotjkoritzinsky
andcommitted
Restore @available annotations for iOS 14 and tvOS 14 on HKDF functions
Co-authored-by: jkoritzinsky <1571408+jkoritzinsky@users.noreply.github.com>
1 parent 6fa8df9 commit d24f5fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/native/libs/System.Security.Cryptography.Native.Apple/pal_swiftbindings.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ enum HKDFError: Error {
202202
}
203203

204204
@_silgen_name("AppleCryptoNative_HKDFExpand")
205+
@available(iOS 14, tvOS 14, *)
205206
public func AppleCryptoNative_HKDFExpand(
206207
hashAlgorithm: Int32,
207208
prkPtr: UnsafeMutableRawPointer,
@@ -247,6 +248,7 @@ public func AppleCryptoNative_HKDFExpand(
247248
}
248249

249250
@_silgen_name("AppleCryptoNative_HKDFExtract")
251+
@available(iOS 14, tvOS 14, *)
250252
public func AppleCryptoNative_HKDFExtract(
251253
hashAlgorithm: Int32,
252254
ikmPtr: UnsafeMutableRawPointer,
@@ -293,6 +295,7 @@ public func AppleCryptoNative_HKDFExtract(
293295
}
294296

295297
@_silgen_name("AppleCryptoNative_HKDFDeriveKey")
298+
@available(iOS 14, tvOS 14, *)
296299
public func AppleCryptoNative_HKDFDeriveKey(
297300
hashAlgorithm: Int32,
298301
ikmPtr: UnsafeMutableRawPointer,

0 commit comments

Comments
 (0)