Add KEYS_IN_BLOCK definition to mifaredefault.h

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
Niel Nielsen authored and Philippe Teuwen committed 2026-09-01 17:57:31 +02:00
1 parent d8537a1a6c
commit 2059eba7fa
1 file changed
+2
+2
View File
@@ -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];