Skip to content

Commit b201352

Browse files
authored
[FL-3653] Update Mfkey32 app with new NFC API (#69)
1 parent 8f9c0ee commit b201352

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed
File renamed without changes.

mfkey32/application.fam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ App(
1010
],
1111
stack_size=1 * 1024,
1212
fap_description="Mf Classic key finder",
13-
fap_version="1.0",
13+
fap_version="1.1",
1414
fap_icon="mfkey.png",
1515
fap_category="NFC",
1616
fap_author="@noproto",

mfkey32/mfkey32.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <stdint.h>
2020
#include <unistd.h>
2121
#include <storage/storage.h>
22-
#include <lib/nfc/helpers/mf_classic_dict.h>
22+
#include <toolbox/stream/buffered_file_stream.h>
2323
#include <lib/toolbox/args.h>
2424
#include <lib/flipper_format/flipper_format.h>
2525
#include <dolphin/dolphin.h>
@@ -123,10 +123,15 @@ typedef struct {
123123
size_t remaining_nonces;
124124
} MfClassicNonceArray;
125125

126-
struct MfClassicDict {
126+
typedef enum {
127+
MfClassicDictTypeSystem,
128+
MfClassicDictTypeUser,
129+
} MfClassicDictType;
130+
131+
typedef struct {
127132
Stream* stream;
128133
uint32_t total_keys;
129-
};
134+
} MfClassicDict;
130135

131136
static const uint8_t table[256] = {
132137
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3,

nfc_magic/.catalog/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 1.1
2+
- Rework application with new NFC API
3+
## 1.0
4+
- Initial release

0 commit comments

Comments
 (0)