Add KEYS_IN_BLOCK definition to mifaredefault.h
Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
1 parent
d8537a1a6c
commit
2059eba7fa
1 file changed
+2
@@ -56,6 +56,8 @@
|
||||
#define MIFARE_2K_MAX_KEY_SIZE (MIFARE_2K_MAXSECTOR * 2 * MIFARE_KEY_SIZE)
|
||||
#define MIFARE_4K_MAX_KEY_SIZE (MIFARE_4K_MAXSECTOR * 2 * MIFARE_KEY_SIZE)
|
||||
|
||||
#define KEYS_IN_BLOCK MIN((PM3_CMD_DATA_SIZE - 5) / MIFARE_KEY_SIZE, 255)
|
||||
|
||||
typedef struct {
|
||||
uint8_t key_a[MIFARE_KEY_SIZE];
|
||||
uint8_t access[3];
|
||||
|
||||
Reference in new issue
Block a user