X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/bd20f8f47847787e1f3e933043933272908c5beb..2bdd68c370f880e34d52218d3580b0856ec81ad0:/common/iso14443crc.h?ds=inline diff --git a/common/iso14443crc.h b/common/iso14443crc.h index 91c6ae1e..87347714 100644 --- a/common/iso14443crc.h +++ b/common/iso14443crc.h @@ -8,6 +8,7 @@ #ifndef __ISO14443CRC_H #define __ISO14443CRC_H +#include "common.h" //----------------------------------------------------------------------------- // Routines to compute the CRCs (two different flavours, just for confusion) @@ -15,10 +16,12 @@ //----------------------------------------------------------------------------- #define CRC_14443_A 0x6363 /* ITU-V.41 */ #define CRC_14443_B 0xFFFF /* ISO/IEC 13239 (formerly ISO/IEC 3309) */ +#define CRC_ICLASS 0xE012 /* ICLASS PRERFIX */ void ComputeCrc14443(int CrcType, - unsigned char *Data, int Length, + const unsigned char *Data, int Length, unsigned char *TransmitFirst, unsigned char *TransmitSecond); +int CheckCrc14443(int CrcType, const unsigned char *Data, int Length); #endif