noproto 1 год назад
Родитель
Сommit
c5bc0ee029
4 измененных файлов с 6 добавлено и 9 удалено
  1. 6 0
      .gitignore
  2. 0 6
      init_plugin.c
  3. 0 1
      mfkey.c
  4. 0 2
      mfkey.h

+ 6 - 0
.gitignore

@@ -0,0 +1,6 @@
+dist/*
+.vscode
+.clang-format
+.editorconfig
+.env
+.ufbt

+ 0 - 6
init_plugin.c

@@ -1,11 +1,7 @@
-// TODO: Remove includes that are not needed
 #include <furi_hal.h>
-#include <gui/gui.h>
-#include <gui/elements.h>
 #include <inttypes.h>
 #include <toolbox/keys_dict.h>
 #include <toolbox/stream/buffered_file_stream.h>
-#include <notification/notification_messages.h>
 #include <nfc/protocols/mf_classic/mf_classic.h>
 #include "mfkey.h"
 #include "common.h"
@@ -33,7 +29,6 @@
 #define SWAPENDIAN(x) \
     ((x) = ((x) >> 8 & 0xff00ff) | ((x) & 0xff00ff) << 8, (x) = (x) >> 16 | (x) << 16)
 
-/* Main methods */
 bool key_already_found_for_nonce_in_dict(KeysDict* dict, MfClassicNonce* nonce) {
     bool found = false;
     uint8_t key_bytes[sizeof(MfClassicKey)];
@@ -393,7 +388,6 @@ void napi_mf_classic_nonce_array_free(MfClassicNonceArray* nonce_array) {
     stream_free(nonce_array->stream);
     free(nonce_array);
 }
-/* End main methods */
 
 /* Actual implementation of app<>plugin interface */
 static const MfkeyPlugin init_plugin = {

+ 0 - 1
mfkey.c

@@ -12,7 +12,6 @@
 // TODO: More accurate timing for Nested
 // TODO: Unload and load specific attacks from memory, plugin_manager_free
 
-// TODO: Remove includes that are not needed
 #include <furi.h>
 #include <furi_hal.h>
 #include <gui/gui.h>

+ 0 - 2
mfkey.h

@@ -1,14 +1,12 @@
 #ifndef MFKEY_H
 #define MFKEY_H
 
-// TODO: Remove includes that are not needed
 #include <furi_hal.h>
 #include <gui/gui.h>
 #include <gui/elements.h>
 #include <inttypes.h>
 #include <toolbox/keys_dict.h>
 #include <toolbox/stream/buffered_file_stream.h>
-#include <notification/notification_messages.h>
 #include <nfc/protocols/mf_classic/mf_classic.h>
 
 struct Crypto1State {