Skip to content

Commit

Permalink
Fix failing Swift Crypto build on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
finagolfin committed Oct 20, 2024
1 parent 103011f commit 18ed486
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions swift-crypto.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,18 @@ index 5f47c2f..4b5579e 100644

/// A standards-based implementation of an HMAC-based Key Derivation Function
/// (HKDF).
diff --git a/swift-crypto/Sources/_CryptoExtras/Key Derivation/Scrypt/BoringSSL/Scrypt_boring.swift b/swift-crypto/Sources/_CryptoExtras/Key Derivation/Scrypt/BoringSSL/Scrypt_boring.swift
index 1076de1..421db76 100644
--- a/swift-crypto/Sources/_CryptoExtras/Key Derivation/Scrypt/BoringSSL/Scrypt_boring.swift
+++ b/swift-crypto/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.
///

0 comments on commit 18ed486

Please sign in to comment.