]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - common/iso14443crc.h
Deduplicate mfkey32 and mfkey64
[proxmark3-svn] / common / iso14443crc.h
index a435d09cf700ba383e26f1b1d18a61073a5ddccf..87347714dbe6be95f1570320efe2512e0f79d05f 100644 (file)
@@ -1,5 +1,14 @@
-#ifndef ISO14443CRC_H__
-#define ISO14443CRC_H__
+//-----------------------------------------------------------------------------
+// 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.
+//-----------------------------------------------------------------------------
+// ISO14443 CRC calculation code.
+//-----------------------------------------------------------------------------
+
+#ifndef __ISO14443CRC_H
+#define __ISO14443CRC_H
+#include "common.h"
 
 //-----------------------------------------------------------------------------
 // Routines to compute the CRCs (two different flavours, just for confusion)
 //-----------------------------------------------------------------------------
 #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
Impressum, Datenschutz