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 <noreply@anthropic.com>
This commit is contained in:
Gabriele GristinaandClaude Opus 5.5 committed 2026-11-07 02:39:31 +01:00
1 parent 3d44291241
commit 6c1545cb5f
1 file changed
+2 -2
+2 -2
View File
@@ -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;