Replaced hf mf bambukeys with hf mf keygen with multiple KDFs support, use table for key output

Added Snapmaker U1 filament RFID KDF in `hf mf keygen`
This commit is contained in:
Foxushka committed 2025-11-10 20:58:49 +03:00
1 parent 3d53e85743
commit b380132cbb
7 files changed
+173 -41

No files matched your search

+15
View File
@@ -40,6 +40,17 @@ uint16_t ul_ev1_packgenG(const uint8_t *uid, const uint8_t *mfg);
uint32_t ul_c_otpgenA(const uint8_t *uid);
// Stucture for KDF function list
typedef struct {
const char *name;
int sector_count;
int (*kdf_function)(uint8_t *, uint8_t *);
int uid_length;
} kdf_t;
const kdf_t *get_kdf_table(void);
size_t get_kdf_table_size(void);
int mfc_algo_ving_one(uint8_t *uid, uint8_t sector, uint8_t keytype, uint64_t *key);
int mfc_algo_ving_all(uint8_t *uid, uint8_t *keys);
@@ -64,6 +75,10 @@ int mfc_algo_touch_one(uint8_t *uid, uint8_t sector, uint8_t keytype, uint64_t *
int mfc_algo_bambu_one(uint8_t *uid, uint8_t sector, uint8_t keytype, uint64_t *key);
int mfc_algo_bambu_all(uint8_t *uid, uint8_t *keys);
int mfc_algo_snapmaker_one(uint8_t *uid, uint8_t sector, uint8_t keytype, uint64_t *key);
int mfc_algo_snapmaker_all(uint8_t *uid, uint8_t *keys);
uint32_t lf_t55xx_white_pwdgen(uint32_t id);
int mfdes_kdf_input_gallagher(uint8_t *uid, uint8_t uidLen, uint8_t keyNo, uint32_t aid, uint8_t *kdfInputOut, uint8_t *kdfInputLen);