1 //-----------------------------------------------------------------------------
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
8 // High frequency MIFARE Desfire commands
9 //-----------------------------------------------------------------------------
15 int CmdHFMFDes(const char *Cmd
);
18 char *getCardSizeStr(uint8_t fsize);
19 char *getVersionStr(uint8_t major, uint8_t minor);
20 int getKeySettings(uint8_t *aid);
24 #define MAX_NUM_KEYS 0x0F
25 #define MAX_APPLICATION_COUNT 28
26 #define MAX_FILE_COUNT 32
27 #define MAX_FRAME_SIZE 60
28 #define FRAME_PAYLOAD_SIZE (MAX_FRAME_SIZE - 5)
36 // Light Ev1 card limits
38 #define NOT_YET_AUTHENTICATED 0xFF