diff --git a/Sources/Crypto/Key Derivation/HKDF.swift b/Sources/Crypto/Key Derivation/HKDF.swift index aa8dda9a..25a0c2f2 100644 --- a/Sources/Crypto/Key Derivation/HKDF.swift +++ b/Sources/Crypto/Key Derivation/HKDF.swift @@ -15,6 +15,9 @@ @_exported import CryptoKit #else import Foundation +#if canImport(Android) +import Android +#endif /// A standards-based implementation of an HMAC-based Key Derivation Function /// (HKDF). diff --git a/Sources/_CryptoExtras/Key Derivation/Scrypt/BoringSSL/Scrypt_boring.swift b/Sources/_CryptoExtras/Key Derivation/Scrypt/BoringSSL/Scrypt_boring.swift index 1076de1a..421db762 100644 --- a/Sources/_CryptoExtras/Key Derivation/Scrypt/BoringSSL/Scrypt_boring.swift +++ b/Sources/_CryptoExtras/Key Derivation/Scrypt/BoringSSL/Scrypt_boring.swift @@ -21,6 +21,10 @@ import Foundation @_implementationOnly import CCryptoBoringSSL @_implementationOnly import CCryptoBoringSSLShims +#if canImport(Android) +import Android +#endif + internal struct BoringSSLScrypt { /// Derives a secure key using the provided passphrase and salt. ///