]>
cvs.zerfleddert.de Git - proxmark3-svn/blob - armsrc/mifarecmd.h
1 //-----------------------------------------------------------------------------
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 // Routines to support ISO 14443 type A.
11 //-----------------------------------------------------------------------------
18 extern void MifareReadBlock(uint8_t arg0
, uint8_t arg1
, uint8_t arg2
, uint8_t *data
);
19 extern void MifareUReadBlock(uint8_t arg0
, uint8_t arg1
, uint8_t *datain
);
20 extern void MifareUC_Auth(uint8_t arg0
, uint8_t *datain
);
21 extern void MifareUReadCard(uint8_t arg0
, uint16_t arg1
, uint8_t arg2
, uint8_t *datain
);
22 extern void MifareReadSector(uint8_t arg0
, uint8_t arg1
, uint8_t arg2
, uint8_t *datain
);
23 extern void MifareWriteBlock(uint8_t arg0
, uint8_t arg1
, uint8_t arg2
, uint8_t *datain
);
24 //extern void MifareUWriteBlockCompat(uint8_t arg0,uint8_t *datain);
25 extern void MifareUWriteBlock(uint8_t arg0
, uint8_t arg1
, uint8_t *datain
);
26 extern void MifareNested(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
);
27 extern void MifareAcquireEncryptedNonces(uint32_t arg0
, uint32_t arg1
, uint32_t flags
, uint8_t *datain
);
28 extern void MifareChkKeys(uint16_t arg0
, uint32_t arg1
, uint8_t arg2
, uint8_t *datain
);
29 extern void MifareSetDbgLvl(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
);
30 extern void MifareEMemClr(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
);
31 extern void MifareEMemSet(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
);
32 extern void MifareEMemGet(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
);
33 extern void MifareECardLoad(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
);
34 extern void MifareCWipe(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
); // Work with "magic Chinese" card
35 extern void MifareCSetBlock(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
);
36 extern void MifareCGetBlock(uint32_t arg0
, uint32_t arg1
, uint32_t arg2
, uint8_t *datain
);
37 extern void MifareCIdent(); // is "magic chinese" card?
38 extern void MifareUSetPwd(uint8_t arg0
, uint8_t *datain
);
39 extern void MifarePersonalizeUID(uint8_t keyType
, uint8_t perso_option
, uint8_t *datain
);
42 extern void Mifare_DES_Auth1(uint8_t arg0
,uint8_t *datain
);
43 extern void Mifare_DES_Auth2(uint32_t arg0
, uint8_t *datain
);