X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/660d641a03456e99ea83c68dbd3d03bae2b64573..8720c8f5d78adc1b74db72a6d5a4b6dbf82137bb:/client/util.h diff --git a/client/util.h b/client/util.h index 1d410592..44a7eb56 100644 --- a/client/util.h +++ b/client/util.h @@ -16,8 +16,12 @@ #include #include -#define MIN(a, b) (((a) < (b)) ? (a) : (b)) -#define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#ifndef MIN +# define MIN(a, b) (((a) < (b)) ? (a) : (b)) +#endif +#ifndef MAX +# define MAX(a, b) (((a) > (b)) ? (a) : (b)) +#endif int ukbhit(void); @@ -41,3 +45,5 @@ uint64_t param_get64ex(const char *line, int paramnum, int deflt, int base); int param_gethex(const char *line, int paramnum, uint8_t * data, int hexcnt); int param_getstr(const char *line, int paramnum, char * str); +// Needed to Authenticate to Ultralight C tags & DESFIRE tags +void rol (uint8_t *data, const size_t len);