fix little endian vs big endian in the macros... again... but this time correct
[RRG-proxmark3.git] / client / src / cmdhfmfdes.h
blobeb4dd77e05a39c949fdedf4c5fbcabc579d4ccb3
1 //-----------------------------------------------------------------------------
2 // Iceman, 2014
3 //
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
6 // the license.
7 //-----------------------------------------------------------------------------
8 // High frequency MIFARE Desfire commands
9 //-----------------------------------------------------------------------------
10 #ifndef __MFDESFIRE_H
11 #define __MFDESFIRE_H
13 #include "common.h"
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);
23 // Ev1 card limits
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)
30 // Ev2 card limits
32 // Ev3 card limits
34 // Light card limits
36 // Light Ev1 card limits
38 #define NOT_YET_AUTHENTICATED 0xFF
42 #endif