From a459d150935b3cabac6947340eceea24a33d1911 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 9 Jan 2020 23:33:23 +0100 Subject: [PATCH] fix: osx doesnt need own bswap.. --- common/generator.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/generator.c b/common/generator.c index 9226964d9..22c63add5 100644 --- a/common/generator.c +++ b/common/generator.c @@ -22,13 +22,6 @@ #include "ui.h" #include "mbedtls/sha1.h" -#if defined(__APPLE__) -#include -#define BSWAP_16(x) OSSwapInt16(x) -#define BSWAP_32(x) OSSwapInt32(x) -#define BSWAP_64(x) OSSwapInt64(x) -#endif - // Implemetation tips: // For each implementation of the algos, I recommend adding a self test for easy "simple unit" tests when Travic CI / Appveyour runs. // See special note for MFC based algos. @@ -241,6 +234,7 @@ int mfc_algo_saflok_one(uint8_t *uid, uint8_t sector, uint8_t keytype, uint64_t } int mfc_algo_saflok_all(uint8_t *uid, uint8_t *keys) { if (keys == NULL) return PM3_EINVARG; + for (int keytype = 0; keytype < 2; keytype++) { for (int sector = 0; sector < 16; sector++){ uint64_t key = 0;