From 6c1545cb5fa1710cc96e9c109201cfb1c8d3c53f Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sat, 7 Nov 2026 02:39:31 +0100 Subject: [PATCH] lf indala: --fc/--cn checksum fitted to twelve genuine cards The sum of y2, y4, y7, y8, y10, y11, y14 and y16 comes from a 2014 forum post that says "I believe", and with fc bit 6 added it still missed one of the seven genuine Indala cards now on record (FC 20 CN 9045). The same post gives Keri 26-bit W as the same calculation with "11" and "00", and five such cards are on record. Adding fc bits x1, x2, x3, x5, x6 and x7 fits all twelve. With these card number bits and "01" for an even sum, no other fc set does. Co-Authored-By: Claude Opus 5.5 --- client/src/cmdlfindala.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdlfindala.c b/client/src/cmdlfindala.c index 059fc45b6..ae47c3872 100644 --- a/client/src/cmdlfindala.c +++ b/client/src/cmdlfindala.c @@ -1162,9 +1162,9 @@ int getIndalaBits(uint8_t fc, uint16_t cn, uint8_t *bits) { chk += ((cn >> 5) & 1); //y11 == 67 - 30 = 37 chk += ((cn >> 2) & 1); //y14 == 89 - 30 = 59 chk += (cn & 1); //y16 == 71 - 30 = 41 - chk += ((fc >> 6) & 1); // fc b7 == 49, the five genuine cards on record need it + chk += evenparity8(fc & 0xEE); // x1 x2 x3 x5 x6 x7 - // as on the five genuine cards on record + // fitted to the genuine Indala and Keri W cards on record if ((chk & 1) == 0) { // If the sum is even, checksum is '01' (binary) = 1. bits[62] = 0; bits[63] = 1;