mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix: osx doesnt need own bswap..
This commit is contained in:
parent
07dfe8493c
commit
a459d15093
1 changed files with 1 additions and 7 deletions
|
@ -22,13 +22,6 @@
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
#include "mbedtls/sha1.h"
|
#include "mbedtls/sha1.h"
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
|
||||||
#include <libkern/OSByteOrder.h>
|
|
||||||
#define BSWAP_16(x) OSSwapInt16(x)
|
|
||||||
#define BSWAP_32(x) OSSwapInt32(x)
|
|
||||||
#define BSWAP_64(x) OSSwapInt64(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Implemetation tips:
|
// Implemetation tips:
|
||||||
// For each implementation of the algos, I recommend adding a self test for easy "simple unit" tests when Travic CI / Appveyour runs.
|
// 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.
|
// 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) {
|
int mfc_algo_saflok_all(uint8_t *uid, uint8_t *keys) {
|
||||||
if (keys == NULL) return PM3_EINVARG;
|
if (keys == NULL) return PM3_EINVARG;
|
||||||
|
|
||||||
for (int keytype = 0; keytype < 2; keytype++) {
|
for (int keytype = 0; keytype < 2; keytype++) {
|
||||||
for (int sector = 0; sector < 16; sector++){
|
for (int sector = 0; sector < 16; sector++){
|
||||||
uint64_t key = 0;
|
uint64_t key = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue