Add recognition of Swissbit iShield Key Mifare as MFD EV3

This commit is contained in:
Adam Hořčica committed 2025-07-12 10:31:07 +02:00
1 parent c8219a6030
commit 7cf206030d
2 files changed
+7 -1

No files matched your search

+6 -1
View File
@@ -238,7 +238,7 @@ static char *getProtocolStr(uint8_t id, bool hw) {
static char *getVersionStr(uint8_t type, uint8_t major, uint8_t minor) {
static char buf[40] = {0x00};
static char buf[60] = {0x00};
char *retStr = buf;
if (type == 0x01 && major == 0x00)
@@ -255,6 +255,8 @@ static char *getVersionStr(uint8_t type, uint8_t major, uint8_t minor) {
snprintf(retStr, sizeof(buf), "%x.%x ( " _GREEN_("DESFire EV2") " )", major, minor);
else if (type == 0x01 && major == 0x33 && minor == 0x00)
snprintf(retStr, sizeof(buf), "%x.%x ( " _GREEN_("DESFire EV3") " )", major, minor);
else if (type == 0x81 && major == 0x43 && minor == 0x01)
snprintf(retStr, sizeof(buf), "%x.%x ( " _GREEN_("DESFire EV3C implementation on P71D600") " )", major, minor); // Swisskey iShield Key
else if (type == 0x01 && major == 0x30 && minor == 0x00)
snprintf(retStr, sizeof(buf), "%x.%x ( " _GREEN_("DESFire Light") " )", major, minor);
else if (type == 0x02 && major == 0x11 && minor == 0x00)
@@ -329,6 +331,9 @@ nxp_cardtype_t getCardType(uint8_t type, uint8_t major, uint8_t minor) {
if (type == 0x01 && major == 0x33 && minor == 0x00)
return DESFIRE_EV3;
if (type == 0x81 && major == 0x43 && minor == 0x01)
return DESFIRE_EV3;
// Duox
if (type == 0x01 && major == 0xA0 && minor == 0x00)
return DUOX;