This commit is contained in:
iceman1001 committed 2025-07-28 15:45:04 +02:00
1 parent 0dacfb996f
commit 79d1e102af
3 files changed
+11 -11

No files matched your search

+2 -2
View File
@@ -1170,14 +1170,14 @@ int getIndalaBits(uint8_t fc, uint16_t cn, uint8_t *bits) {
bits[62] = 0;
bits[63] = 1;
}
// add parity
// bits[34] = 1; // p1 64 - 30 = 34
// bits[38] = 1; // p2 68 - 30 = 38
// 92 = 62
// 93 = 63
bits[34] = 0; // parity for odd bits
bits[38] = 0; // parity for even bits
uint8_t p1 = 1;
+2 -2
View File
@@ -2245,11 +2245,11 @@ int DesfireValueFileOperations(DesfireContext_t *dctx, uint8_t fid, uint8_t oper
PrintAndLogEx(INFO, "MAC mode failed with length error, retrying with plain mode");
DesfireCommunicationMode original_mode = dctx->commMode;
dctx->commMode = DCMPlain;
memset(resp, 0, sizeof(resp));
resplen = 0;
res = DesfireCommand(dctx, operation, data, datalen, resp, &resplen, -1);
// Restore original mode for future commands
dctx->commMode = original_mode;
}