diff --git a/client/src/mifare/desfirecore.c b/client/src/mifare/desfirecore.c index 10c4dff42..abce6e7e9 100644 --- a/client/src/mifare/desfirecore.c +++ b/client/src/mifare/desfirecore.c @@ -2544,22 +2544,9 @@ int DesfireSetConfiguration(DesfireContext *dctx, uint8_t paramid, uint8_t *para memcpy(&data[1], param, 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 - if (paramid == 0x02 && dctx->commMode == DCMEncrypted) { + if (paramid == 0x02 && dctx->commMode == DCMEncrypted) dctx->commMode = DCMEncryptedWithPadding; - //data[datalen] = 0x80; - //datalen++; - } // send command uint8_t resp[257] = {0};