NFC: Support DESFire Transaction MAC file type (#4159)

* NFC: Support DESFire Transaction MAC file type

* Fix typo

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
This commit is contained in:
WillyJL
2025-03-31 17:22:16 +00:00
committed by GitHub
parent 17759a9e4b
commit 8871df863b
4 changed files with 89 additions and 13 deletions

View File

@@ -180,6 +180,9 @@ void nfc_render_mf_desfire_file_settings_data(
case MfDesfireFileTypeCyclicRecord:
type = "cyclic";
break;
case MfDesfireFileTypeTransactionMac:
type = "txn-mac";
break;
default:
type = "unknown";
}
@@ -237,6 +240,15 @@ void nfc_render_mf_desfire_file_settings_data(
furi_string_cat_printf(str, "size %lu\n", record_size);
furi_string_cat_printf(str, "num %lu max %lu\n", record_count, settings->record.max);
break;
case MfDesfireFileTypeTransactionMac:
record_count = 0;
furi_string_cat_printf(
str,
"key opt %02X ver %02X\n",
settings->transaction_mac.key_option,
settings->transaction_mac.key_version);
furi_string_cat_printf(str, "cnt limit %lu\n", settings->transaction_mac.counter_limit);
break;
}
bool is_auth_required = true;