1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
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.
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 #ifndef __MIFAREDESFIRE_H
17 #define __MIFAREDESFIRE_H
21 bool InitDesfireCard(void);
22 void MifareSendCommand(uint8_t *datain
);
23 void MifareDesfireGetInformation(void);
24 void MifareDES_Auth1(uint8_t *datain
);
25 void ReaderMifareDES(uint32_t param
, uint32_t param2
, uint8_t *datain
);
26 int DesfireAPDU(uint8_t *cmd
, size_t cmd_len
, uint8_t *dataout
);
27 size_t CreateAPDU(uint8_t *datain
, size_t len
, uint8_t *dataout
);
29 void OnError(uint8_t reason
);
30 void OnErrorNG(uint16_t cmd
, uint8_t reason
);