X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/b359cee677eb741b0fe6fe14a031da2b6f6cdfac..02d352fea75385d80b49a7ab8703692ae307f073:/client/cmdhfmfdes.c diff --git a/client/cmdhfmfdes.c b/client/cmdhfmfdes.c index 75aaa084..c3cdde2c 100644 --- a/client/cmdhfmfdes.c +++ b/client/cmdhfmfdes.c @@ -12,7 +12,8 @@ #include #include #include -#include +//#include +#include "loclass/des.h" #include "cmdmain.h" #include "proxmark3.h" #include "../include/common.h" @@ -236,7 +237,7 @@ char * GetCardSizeStr( uint8_t fsize ){ uint16_t lsize = 1 << (fsize >>1); // is LSB set? - if ( fsize & (1 << 0 ) ) + if ( fsize & 1 ) sprintf(retStr, "0x%02X (%d - %d bytes)",fsize, usize, lsize); else sprintf(retStr, "0x%02X (%d bytes)", fsize, lsize); @@ -251,7 +252,7 @@ char * GetProtocolStr(uint8_t id){ if ( id == 0x05) sprintf(retStr,"0x%02X (ISO 14443-3, 14443-4)", id); else - sprintf(retStr,"0x%02X", id); + sprintf(retStr,"0x%02X (Unknown)", id); return buf; }