Merge pull request #2654 from Antiklesys/master
[RRG-proxmark3.git] / client / src / cmdhfmfdes.h
blob80b3e8c9313af914d3608f48088e696f38eb7af4
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // High frequency MIFARE Desfire commands
17 //-----------------------------------------------------------------------------
18 #ifndef __MFDESFIRE_H
19 #define __MFDESFIRE_H
21 #include "common.h"
23 int CmdHFMFDes(const char *Cmd);
26 char *getCardSizeStr(uint8_t fsize);
27 char *getVersionStr(uint8_t major, uint8_t minor);
28 int getKeySettings(uint8_t *aid);
31 int desfire_print_signature(uint8_t *uid, uint8_t uidlen, uint8_t *signature, size_t signature_len);
33 // Ev1 card limits
34 #define MAX_NUM_KEYS 0x0F
35 #define MAX_APPLICATION_COUNT 28
36 #define MAX_FILE_COUNT 32
37 #define MAX_FRAME_SIZE 60
38 #define FRAME_PAYLOAD_SIZE (MAX_FRAME_SIZE - 5)
40 // Ev2 card limits
42 // Ev3 card limits
44 // Light card limits
46 // Light Ev1 card limits
48 #define NOT_YET_AUTHENTICATED 0xFF
52 #endif