Skip to content

Commit 8fa345c

Browse files
authored
Add support for new Android overlay, swiftlang/swift#74758 (#286)
1 parent 7cb6113 commit 8fa345c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Sources/Crypto/Key Derivation/HKDF.swift

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
@_exported import CryptoKit
1616
#else
1717
import Foundation
18+
#if canImport(Android)
19+
import Android
20+
#endif
1821

1922
/// A standards-based implementation of an HMAC-based Key Derivation Function
2023
/// (HKDF).

Sources/_CryptoExtras/Key Derivation/Scrypt/BoringSSL/Scrypt_boring.swift

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import Foundation
2121
@_implementationOnly import CCryptoBoringSSL
2222
@_implementationOnly import CCryptoBoringSSLShims
2323

24+
#if canImport(Android)
25+
import Android
26+
#endif
27+
2428
internal struct BoringSSLScrypt {
2529
/// Derives a secure key using the provided passphrase and salt.
2630
///

0 commit comments

Comments
 (0)