From: pwpiwi Date: Sun, 25 Aug 2019 12:03:11 +0000 (+0200) Subject: add iclass.h X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/deb965b54df637e3170ef365ea7d87443bd72bee?hp=-c add iclass.h --- deb965b54df637e3170ef365ea7d87443bd72bee diff --git a/armsrc/iclass.h b/armsrc/iclass.h new file mode 100644 index 00000000..828792c5 --- /dev/null +++ b/armsrc/iclass.h @@ -0,0 +1,33 @@ +//----------------------------------------------------------------------------- +// Gerhard de Koning Gans - May 2008 +// Hagen Fritsch - June 2010 +// Gerhard de Koning Gans - May 2011 +// Gerhard de Koning Gans - June 2012 - Added iClass card and reader emulation +// +// This code is licensed to you under the terms of the GNU GPL, version 2 or, +// at your option, any later version. See the LICENSE.txt file for the text of +// the license. +//----------------------------------------------------------------------------- +// Routines to support iClass. +//----------------------------------------------------------------------------- + +#ifndef ICLASS_H__ +#define ICLASS_H__ + +#include +#include "common.h" // for RAMFUNC + +extern void RAMFUNC SnoopIClass(void); +extern void SimulateIClass(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain); +extern void ReaderIClass(uint8_t arg0); +extern void ReaderIClass_Replay(uint8_t arg0, uint8_t *MAC); +extern void IClass_iso14443A_GetPublic(uint8_t arg0); +extern void iClass_Authentication(uint8_t *MAC); +extern void iClass_WriteBlock(uint8_t blockNo, uint8_t *data); +extern void iClass_ReadBlk(uint8_t blockNo); +extern bool iClass_ReadBlock(uint8_t blockNo, uint8_t *readdata); +extern void iClass_Dump(uint8_t blockno, uint8_t numblks); +extern void iClass_Clone(uint8_t startblock, uint8_t endblock, uint8_t *data); +extern void iClass_ReadCheck(uint8_t blockNo, uint8_t keyType); + +#endif