Merge branch 'master' of github.com:RfidResearchGroup/proxmark3
[RRG-proxmark3.git] / armsrc / mifaredesfire.h
blobb34e436f1bb878a593a14564e43292d74c0e4e30
1 //-----------------------------------------------------------------------------
2 // Jonathan Westhues, Aug 2005
3 // Gerhard de Koning Gans, April 2008, May 2011
4 //
5 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 // at your option, any later version. See the LICENSE.txt file for the text of
7 // the license.
8 //-----------------------------------------------------------------------------
9 // Definitions internal to the app source.
10 //-----------------------------------------------------------------------------
11 #ifndef __MIFAREDESFIRE_H
12 #define __MIFAREDESFIRE_H
14 #include "common.h"
16 bool InitDesfireCard(void);
17 void MifareSendCommand(uint8_t *datain);
18 void MifareDesfireGetInformation(void);
19 void MifareDES_Auth1(uint8_t *datain);
20 void ReaderMifareDES(uint32_t param, uint32_t param2, uint8_t *datain);
21 int DesfireAPDU(uint8_t *cmd, size_t cmd_len, uint8_t *dataout);
22 size_t CreateAPDU(uint8_t *datain, size_t len, uint8_t *dataout);
23 void OnSuccess(void);
24 void OnError(uint8_t reason);
25 void OnErrorNG(uint16_t cmd, uint8_t reason);
27 #endif