remove comments

This commit is contained in:
merlokk 2021-08-04 23:51:09 +03:00
commit 91b1026f6d

View file

@ -2544,22 +2544,9 @@ int DesfireSetConfiguration(DesfireContext *dctx, uint8_t paramid, uint8_t *para
memcpy(&data[1], param, paramlen); memcpy(&data[1], param, paramlen);
size_t datalen = 1 + paramlen; size_t datalen = 1 + paramlen;
/*// add crc
if (dctx->secureChannel == DACd40) {
iso14443a_crc_append(&data[1], datalen - 1);
datalen += 2;
} else {
desfire_crc32_append(cdata, datalen + 1);
datalen += 4;
}
*/
// dynamic length // dynamic length
if (paramid == 0x02 && dctx->commMode == DCMEncrypted) { if (paramid == 0x02 && dctx->commMode == DCMEncrypted)
dctx->commMode = DCMEncryptedWithPadding; dctx->commMode = DCMEncryptedWithPadding;
//data[datalen] = 0x80;
//datalen++;
}
// send command // send command
uint8_t resp[257] = {0}; uint8_t resp[257] = {0};