]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - client/mifare4.h
5b789a700639c0cb9aded38f01c385e7cadfc233
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2018 Merlok
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
7 //-----------------------------------------------------------------------------
8 // iso14443-4 mifare commands
9 //-----------------------------------------------------------------------------
27 extern int CalculateMAC(mf4Session
*session
, uint8_t *data
, int datalen
, uint8_t *mac
, bool verbose
);
28 extern int MifareAuth4(mf4Session
*session
, uint8_t *keyn
, uint8_t *key
, bool activateField
, bool leaveSignalON
, bool verbose
);
30 extern uint8_t mfNumBlocksPerSector(uint8_t sectorNo
);
31 extern uint8_t mfFirstBlockOfSector(uint8_t sectorNo
);
32 extern uint8_t mfSectorTrailer(uint8_t blockNo
);
33 extern bool mfIsSectorTrailer(uint8_t blockNo
);
34 extern uint8_t mfSectorNum(uint8_t blockNo
);