X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/db289ea7d7d7eb3b9935551012b845b7fa0f5a6a..aa9b584f5c3050e4f186f12c097219814422b19b:/client/cmdhficlass.c diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index c4f72709..3891d431 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -880,7 +880,7 @@ int CmdHFiClassReader_Dump(const char *Cmd) { if (have_debit_key) memcpy(tag_data+(3*8),div_key,8); if (have_credit_key) memcpy(tag_data+(4*8),c_div_key,8); - printf("Num of bytes: %u\n", gotBytes); + printf("Num of bytes: %zu\n", gotBytes); // print the dump printf("------+--+-------------------------+\n"); @@ -1388,25 +1388,6 @@ int CmdHFiClassReadTagFile(const char *Cmd) { return 0; } -/* -uint64_t xorcheck(uint64_t sdiv,uint64_t hdiv) { - uint64_t new_div = 0x00; - new_div ^= sdiv; - new_div ^= hdiv; - return new_div; -} - -uint64_t hexarray_to_uint64(uint8_t *key) { - char temp[17]; - uint64_t uint_key; - for (int i = 0;i < 8;i++) - sprintf(&temp[(i *2)],"%02X",key[i]); - temp[16] = '\0'; - if (sscanf(temp,"%016"llX,&uint_key) < 1) - return 0; - return uint_key; -} -*/ void HFiClassCalcDivKey(uint8_t *CSN, uint8_t *KEY, uint8_t *div_key, bool elite){ uint8_t keytable[128] = {0}; uint8_t key_index[8] = {0};