1 //-----------------------------------------------------------------------------
2 // Merlok - June 2011, 2012
3 // Gerhard de Koning Gans - May 2008
4 // Hagen Fritsch - June 2010
6 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
7 // at your option, any later version. See the LICENSE.txt file for the text of
9 //-----------------------------------------------------------------------------
10 // Mifare Classic Card Simulation
11 //-----------------------------------------------------------------------------
19 # define CheckCrc14A(data, len) check_crc(CRC_14443_A, (data), (len))
22 #define AC_DATA_READ 0
23 #define AC_DATA_WRITE 1
25 #define AC_DATA_DEC_TRANS_REST 3
26 #define AC_KEYA_READ 0
27 #define AC_KEYA_WRITE 1
28 #define AC_KEYB_READ 2
29 #define AC_KEYB_WRITE 3
35 #define AUTHKEYNONE 0xff
37 void Mifare1ksim(uint16_t flags
, uint8_t exitAfterNReads
, uint8_t *datain
, uint16_t atqa
, uint8_t sak
);