mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
style
This commit is contained in:
parent
2fc36d73c9
commit
0be35a8e7e
33 changed files with 448 additions and 448 deletions
|
@ -1708,10 +1708,10 @@ void MifareChkKeys(uint8_t *datain, uint8_t reserved_mem) {
|
|||
|
||||
uint16_t key_mem_available;
|
||||
if (reserved_mem)
|
||||
key_mem_available = key_count * 6;
|
||||
key_mem_available = key_count * 6;
|
||||
else
|
||||
key_mem_available = MIN((PM3_CMD_DATA_SIZE - 5), key_count * 6);
|
||||
|
||||
key_mem_available = MIN((PM3_CMD_DATA_SIZE - 5), key_count * 6);
|
||||
|
||||
key_count = key_mem_available / 6;
|
||||
|
||||
datain += 5;
|
||||
|
@ -1965,7 +1965,7 @@ int MifareECardLoad(uint8_t sectorcnt, uint8_t keytype) {
|
|||
for (uint8_t blockNo = 0; blockNo < NumBlocksPerSector(sectorNo); blockNo++) {
|
||||
if (mifare_classic_readblock(pcs, cuid, FirstBlockOfSector(sectorNo) + blockNo, dataoutbuf)) {
|
||||
retval = PM3_EPARTIAL;
|
||||
|
||||
|
||||
if (DBGLEVEL > DBG_ERROR) Dbprintf("Error reading sector %2d block %2d", sectorNo, blockNo);
|
||||
continue;
|
||||
}
|
||||
|
@ -2062,12 +2062,12 @@ void MifareCSetBlock(uint32_t arg0, uint32_t arg1, uint8_t *datain) {
|
|||
errormsg = MAGIC_WIPE;
|
||||
break;
|
||||
}
|
||||
|
||||
uint32_t old_timeout = iso14a_get_timeout();
|
||||
|
||||
// 2000 ms timeout
|
||||
// 13560000 / 1000 / (8 * 16) * timeout
|
||||
iso14a_set_timeout(21190);
|
||||
|
||||
uint32_t old_timeout = iso14a_get_timeout();
|
||||
|
||||
// 2000 ms timeout
|
||||
// 13560000 / 1000 / (8 * 16) * timeout
|
||||
iso14a_set_timeout(21190);
|
||||
|
||||
ReaderTransmit(wipeC, sizeof(wipeC), NULL);
|
||||
if (!ReaderReceive(receivedAnswer, receivedAnswerPar) || (receivedAnswer[0] != 0x0a)) {
|
||||
|
@ -2075,7 +2075,7 @@ void MifareCSetBlock(uint32_t arg0, uint32_t arg1, uint8_t *datain) {
|
|||
errormsg = MAGIC_WIPE;
|
||||
break;
|
||||
}
|
||||
iso14a_set_timeout(old_timeout);
|
||||
iso14a_set_timeout(old_timeout);
|
||||
|
||||
mifare_classic_halt_ex(NULL);
|
||||
}
|
||||
|
@ -2255,12 +2255,12 @@ void MifareCIdent(void) {
|
|||
if (memcmp(buf, "\x0D\x78\x00\x71\x02\x88\x49\xA1\x30\x20\x15\x06\x08\x56\x3D", 15) == 0) {
|
||||
isGen = MAGIC_GEN_2;
|
||||
}
|
||||
// test for Ultralight magic gen2
|
||||
// test for Ultralight magic gen2
|
||||
if (memcmp(buf, "\x0A\x78\x00\x81\x02\xDB\xA0\xC1\x19\x40\x2A\xB5", 12) == 0) {
|
||||
isGen = MAGIC_GEN_2;
|
||||
goto OUT;
|
||||
}
|
||||
// test for Ultralight EV1 magic gen2
|
||||
// test for Ultralight EV1 magic gen2
|
||||
if (memcmp(buf, "\x85\x00\x00\xA0\x00\x00\x0A\xC3\x00\x04\x03\x01\x01\x00\x0B\x03\x41\xDF", 18) == 0) {
|
||||
isGen = MAGIC_GEN_2;
|
||||
goto OUT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue