PicoPass: auth cleanup (#2470)

* remove redundant auth methods
* Move picopass keys to new file
* CTF key
* Format sources
* PicoPass: add pragma once to picopass_keys.h

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Eric Betts
2023-03-08 03:46:30 -08:00
committed by GitHub
parent 90958a6d23
commit 5be15152eb
8 changed files with 31 additions and 83 deletions

View File

@@ -1,4 +1,5 @@
#include "../picopass_i.h"
#include "../picopass_keys.h"
enum SubmenuIndex {
SubmenuIndexWriteStandard,
@@ -8,11 +9,6 @@ enum SubmenuIndex {
SubmenuIndexWriteCustom, //TODO: user input of key
};
extern const uint8_t picopass_xice_key[];
extern const uint8_t picopass_xicl_key[];
extern const uint8_t picopass_xics_key[];
extern const uint8_t picopass_iclass_key[];
void picopass_scene_key_menu_submenu_callback(void* context, uint32_t index) {
Picopass* picopass = context;

View File

@@ -1,7 +1,6 @@
#include "../picopass_i.h"
#include <dolphin/dolphin.h>
extern const uint8_t picopass_factory_debit_key[];
#include "../picopass_keys.h"
void picopass_read_card_worker_callback(PicopassWorkerEvent event, void* context) {
UNUSED(event);

View File

@@ -1,7 +1,6 @@
#include "../picopass_i.h"
#include <dolphin/dolphin.h>
extern const uint8_t picopass_iclass_key[];
#include "../picopass_keys.h"
void picopass_scene_read_factory_success_widget_callback(
GuiButtonType result,