mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
Remove unused pointers to statically alocated storage for keys from pmflash.h. iClass flash-stores password dictionary seem not to be used anywhere.
This commit is contained in:
parent
2fe0ba57b2
commit
34883cf91f
1 changed files with 3 additions and 33 deletions
|
@ -26,9 +26,6 @@
|
||||||
//
|
//
|
||||||
// 0x3F000 - 1 4kb sector = signature
|
// 0x3F000 - 1 4kb sector = signature
|
||||||
// 0x3E000 - 1 4kb sector = settings
|
// 0x3E000 - 1 4kb sector = settings
|
||||||
// 0x3D000 - 1 4kb sector = default T55XX keys dictionary
|
|
||||||
// 0x3B000 - 1 4kb sector = default ICLASS keys dictionary
|
|
||||||
// 0x35000 - 6 4kb sectors = default MFC keys dictionary
|
|
||||||
//
|
//
|
||||||
#ifndef FLASH_MEM_BLOCK_SIZE
|
#ifndef FLASH_MEM_BLOCK_SIZE
|
||||||
# define FLASH_MEM_BLOCK_SIZE 256
|
# define FLASH_MEM_BLOCK_SIZE 256
|
||||||
|
@ -75,45 +72,18 @@
|
||||||
# define T55XX_CONFIG_OFFSET_P(p64k) (FLASH_MEM_MAX_4K_SECTOR_P(p64k) - 0x2000)
|
# define T55XX_CONFIG_OFFSET_P(p64k) (FLASH_MEM_MAX_4K_SECTOR_P(p64k) - 0x2000)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Reserved space for T55XX PWD = 4 kb
|
// T55XX PWD stored in spiffs
|
||||||
#define T55XX_KEYS_FILE "dict_t55xx.bin"
|
#define T55XX_KEYS_FILE "dict_t55xx.bin"
|
||||||
#define T55XX_KEY_LENGTH 4
|
#define T55XX_KEY_LENGTH 4
|
||||||
|
|
||||||
#ifndef DEFAULT_T55XX_KEYS_OFFSET
|
// iClass keys stored in spiffs
|
||||||
# define DEFAULT_T55XX_KEYS_LEN (0x1000)
|
|
||||||
# define DEFAULT_T55XX_KEYS_OFFSET (T55XX_CONFIG_OFFSET - DEFAULT_T55XX_KEYS_LEN)
|
|
||||||
# define DEFAULT_T55XX_KEYS_MAX ((DEFAULT_T55XX_KEYS_LEN - 2) / 4)
|
|
||||||
#endif
|
|
||||||
#ifndef DEFAULT_T55XX_KEYS_OFFSET_P
|
|
||||||
# define DEFAULT_T55XX_KEYS_OFFSET_P(p64k) (T55XX_CONFIG_OFFSET_P(p64k) - DEFAULT_T55XX_KEYS_LEN)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Reserved space for iClass keys = 4 kb
|
|
||||||
#define ICLASS_KEYS_FILE "dict_iclass.bin"
|
#define ICLASS_KEYS_FILE "dict_iclass.bin"
|
||||||
#define ICLASS_KEY_LENGTH 8
|
#define ICLASS_KEY_LENGTH 8
|
||||||
|
|
||||||
#ifndef DEFAULT_ICLASS_KEYS_OFFSET
|
// Mifare keys stored in spiffs
|
||||||
# define DEFAULT_ICLASS_KEYS_LEN (0x1000)
|
|
||||||
# define DEFAULT_ICLASS_KEYS_OFFSET (DEFAULT_T55XX_KEYS_OFFSET - DEFAULT_ICLASS_KEYS_LEN)
|
|
||||||
# define DEFAULT_ICLASS_KEYS_MAX ((DEFAULT_ICLASS_KEYS_LEN - 2) / 8)
|
|
||||||
#endif
|
|
||||||
#ifndef DEFAULT_ICLASS_KEYS_OFFSET_P
|
|
||||||
# define DEFAULT_ICLASS_KEYS_OFFSET_P(p64k) (DEFAULT_T55XX_KEYS_OFFSET_P(p64k) - DEFAULT_ICLASS_KEYS_LEN)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Reserved space for MIFARE Keys = 24 kb
|
|
||||||
#define MF_KEYS_FILE "dict_mf.bin"
|
#define MF_KEYS_FILE "dict_mf.bin"
|
||||||
#define MF_KEY_LENGTH 6
|
#define MF_KEY_LENGTH 6
|
||||||
|
|
||||||
#ifndef DEFAULT_MF_KEYS_OFFSET
|
|
||||||
# define DEFAULT_MF_KEYS_LEN (0x6000)
|
|
||||||
# define DEFAULT_MF_KEYS_OFFSET (DEFAULT_ICLASS_KEYS_OFFSET - DEFAULT_MF_KEYS_LEN)
|
|
||||||
# define DEFAULT_MF_KEYS_MAX ((DEFAULT_MF_KEYS_LEN - 2) / 6)
|
|
||||||
#endif
|
|
||||||
#ifndef DEFAULT_MF_KEYS_OFFSET_P
|
|
||||||
# define DEFAULT_MF_KEYS_OFFSET_P(p64k) (DEFAULT_ICLASS_KEYS_OFFSET_P(p64k) - DEFAULT_MF_KEYS_LEN)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// RDV40, validation structure to help identifying that client/firmware is talking with RDV40
|
// RDV40, validation structure to help identifying that client/firmware is talking with RDV40
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t magic[4];
|
uint8_t magic[4];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue