chg: 'hf iclass chk' - unsigned long long.
This commit is contained in:
@@ -1874,7 +1874,7 @@ int CmdHFiClassCheckKeys(const char *Cmd) {
|
|||||||
keyBlock = p;
|
keyBlock = p;
|
||||||
|
|
||||||
memset(keyBlock + 8 * keycnt, 0, 8);
|
memset(keyBlock + 8 * keycnt, 0, 8);
|
||||||
num_to_bytes(strtoll(buf, NULL, 16), 8, keyBlock + 8 * keycnt);
|
num_to_bytes(strtoull(buf, NULL, 16), 8, keyBlock + 8 * keycnt);
|
||||||
|
|
||||||
PrintAndLog("check key[%2d] %016" PRIx64, keycnt, bytes_to_num(keyBlock + 8*keycnt, 8));
|
PrintAndLog("check key[%2d] %016" PRIx64, keycnt, bytes_to_num(keyBlock + 8*keycnt, 8));
|
||||||
keycnt++;
|
keycnt++;
|
||||||
@@ -1883,7 +1883,6 @@ int CmdHFiClassCheckKeys(const char *Cmd) {
|
|||||||
fclose(f);
|
fclose(f);
|
||||||
PrintAndLog("Loaded %2d keys from %s", keycnt, filename);
|
PrintAndLog("Loaded %2d keys from %s", keycnt, filename);
|
||||||
|
|
||||||
|
|
||||||
// time
|
// time
|
||||||
uint64_t t1 = msclock();
|
uint64_t t1 = msclock();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user