]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/mifare4.h
2453797b24ba9f972f09cc380ed4a098a1a87ff6
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2018 Merlok
3 // Copyright (C) 2018 drHatson
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
8 //-----------------------------------------------------------------------------
9 // iso14443-4 mifare commands
10 //-----------------------------------------------------------------------------
41 extern int CalculateMAC(mf4Session
*session
, MACType_t mtype
, uint8_t blockNum
, uint8_t blockCount
, uint8_t *data
, int datalen
, uint8_t *mac
, bool verbose
);
42 extern int MifareAuth4(mf4Session
*session
, uint8_t *keyn
, uint8_t *key
, bool activateField
, bool leaveSignalON
, bool verbose
);
44 extern uint8_t mfNumBlocksPerSector(uint8_t sectorNo
);
45 extern uint8_t mfFirstBlockOfSector(uint8_t sectorNo
);
46 extern uint8_t mfSectorTrailer(uint8_t blockNo
);
47 extern bool mfIsSectorTrailer(uint8_t blockNo
);
48 extern uint8_t mfSectorNum(uint8_t blockNo
);