]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - common/iso14443crc.h
CHG: 'lf cotag demod' - now finds FC/CN Thanks to @marshmellow42
[proxmark3-svn] / common / iso14443crc.h
index e70573efdd67c0425a66f595c5f47943126ae5ef..4b1fb7e84eb0fb721c5bfd5ecc844c53e1deb583 100644 (file)
@@ -8,6 +8,7 @@
 
 #ifndef __ISO14443CRC_H
 #define __ISO14443CRC_H
 
 #ifndef __ISO14443CRC_H
 #define __ISO14443CRC_H
+#include "common.h"
 
 //-----------------------------------------------------------------------------
 // Routines to compute the CRCs (two different flavours, just for confusion)
 
 //-----------------------------------------------------------------------------
 // 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_14443_A     0x6363  /* ITU-V.41 */
 #define        CRC_14443_B     0xFFFF  /* ISO/IEC 13239 (formerly ISO/IEC 3309) */
-#define CRC_ICLASS     0xE012  /* ICLASS PRERFIX */
+#define CRC_ICLASS     0xE012  /* ICLASS PREFIX */
 
 void ComputeCrc14443(int CrcType,
 
 void ComputeCrc14443(int CrcType,
-                     unsigned char *Data, int Length,
+                     const unsigned char *Data, int Length,
                      unsigned char *TransmitFirst,
                      unsigned char *TransmitSecond);
                      unsigned char *TransmitFirst,
                      unsigned char *TransmitSecond);
+int CheckCrc14443(int CrcType, const unsigned char *Data, int Length);
 
 #endif
 
 #endif
Impressum, Datenschutz