mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-27 03:49:58 -07:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user