mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
style
This commit is contained in:
parent
2fcdea68d1
commit
66b1a48536
2 changed files with 6 additions and 5 deletions
|
@ -1300,18 +1300,18 @@ int ExchangeAPDU14a(const uint8_t *datain, int datainlen, bool activateField, bo
|
||||||
*dataoutlen = 0;
|
*dataoutlen = 0;
|
||||||
res = CmdExchangeAPDU(chainBlockNotLast, &datain[clen], vlen, vActivateField, dataout, maxdataoutlen, dataoutlen, &chaining);
|
res = CmdExchangeAPDU(chainBlockNotLast, &datain[clen], vlen, vActivateField, dataout, maxdataoutlen, dataoutlen, &chaining);
|
||||||
if (res != PM3_SUCCESS) {
|
if (res != PM3_SUCCESS) {
|
||||||
if (leaveSignalON == false)
|
if (leaveSignalON == false) {
|
||||||
DropField();
|
DropField();
|
||||||
|
}
|
||||||
return 200;
|
return 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check R-block ACK
|
// check R-block ACK
|
||||||
// TODO check this one...
|
// TODO check this one...
|
||||||
if ((*dataoutlen == 0) && (chaining != chainBlockNotLast)) {
|
if ((*dataoutlen == 0) && (chaining != chainBlockNotLast)) {
|
||||||
if (leaveSignalON == false)
|
if (leaveSignalON == false) {
|
||||||
DropField();
|
DropField();
|
||||||
|
}
|
||||||
return 201;
|
return 201;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1323,6 +1323,7 @@ int ExchangeAPDU14a(const uint8_t *datain, int datainlen, bool activateField, bo
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (clen < datainlen);
|
} while (clen < datainlen);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -842,7 +842,7 @@ static int seos_mutual_auth(uint8_t *randomICC, uint8_t *CRYPTOGRAM_Diversifier,
|
||||||
bool activate_field = false;
|
bool activate_field = false;
|
||||||
bool keep_field_on = true;
|
bool keep_field_on = true;
|
||||||
|
|
||||||
uint8_t aMUTUAL_AUTH[102];
|
uint8_t aMUTUAL_AUTH[102] = {0};
|
||||||
int aMUTUAL_AUTH_n = 0;
|
int aMUTUAL_AUTH_n = 0;
|
||||||
param_gethex_to_eol(mutual_auth, 0, aMUTUAL_AUTH, sizeof(aMUTUAL_AUTH), &aMUTUAL_AUTH_n);
|
param_gethex_to_eol(mutual_auth, 0, aMUTUAL_AUTH, sizeof(aMUTUAL_AUTH), &aMUTUAL_AUTH_n);
|
||||||
int res = ExchangeAPDU14a(aMUTUAL_AUTH, aMUTUAL_AUTH_n, activate_field, keep_field_on, response, sizeof(response), &resplen);
|
int res = ExchangeAPDU14a(aMUTUAL_AUTH, aMUTUAL_AUTH_n, activate_field, keep_field_on, response, sizeof(response), &resplen);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue