OLD/MIX convert to NG: Phase C4

This commit is contained in:
iceman1001 committed 2026-08-29 14:24:11 +02:00
1 parent f42564283e
commit d1cc742987
5 files changed
+50 -29

No files matched your search

+17
View File
@@ -399,6 +399,23 @@ typedef struct {
uint8_t key[6];
} PACKED mf_readsector_t;
// CMD_HF_MIFARE_VALUE payload.
// Replaces a 34 byte blob addressed by hardcoded offsets:
// arg0/1/2 = blockno / keytype / transfer keytype
// [0..5] key, [9] action, [10] transfer block, [11..26] block data,
// [27..32] transfer key, [33] nested auth flag
typedef struct {
uint8_t blockno;
uint8_t keytype;
uint8_t transfer_keytype;
uint8_t action; // 0 increment, 1 decrement, 2 restore
uint8_t transfer_blockno;
uint8_t need_auth; // nested auth needed when transferring across sectors
uint8_t key[6];
uint8_t transfer_key[6];
uint8_t blockdata[16];
} PACKED mf_value_t;
// CMD_HF_MIFARE_CSETBL / CMD_HF_MIFARE_CGETBL payload.
// data[] carries the block to write for CSETBL, and is empty for CGETBL.
typedef struct {