 import CryptoKit
 #endif
 
+#if canImport(CryptoKit)
 func HMAC(algorithm: Generator.Algorithm, key: Data, data: Data) -> Data {
     if #available(iOS 13.0, macOS 10.15, watchOS 6.0, *) {
         let key = SymmetricKey(data: key)

        }
    }
}

private extension Generator.Algorithm {
    /// The corresponding CommonCrypto hash function and hash length.

            return CryptoKit.HMAC<SHA512>.authenticationCode(for: data, using: key).withUnsafeBytes(createData)
        }
    } else {
        return legacyHMAC(algorithm: algorithm, key: key, data: data)
    }
}

