]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - common/iso14443crc.h
Client cleanup and restructuring. Stage 1...
[proxmark3-svn] / common / iso14443crc.h
diff --git a/common/iso14443crc.h b/common/iso14443crc.h
new file mode 100644 (file)
index 0000000..a435d09
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef ISO14443CRC_H__
+#define ISO14443CRC_H__
+
+//-----------------------------------------------------------------------------
+// Routines to compute the CRCs (two different flavours, just for confusion)
+// required for ISO 14443, swiped directly from the spec.
+//-----------------------------------------------------------------------------
+#define        CRC_14443_A     0x6363  /* ITU-V.41 */
+#define        CRC_14443_B     0xFFFF  /* ISO/IEC 13239 (formerly ISO/IEC 3309) */
+
+void ComputeCrc14443(int CrcType,
+                     unsigned char *Data, int Length,
+                     unsigned char *TransmitFirst,
+                     unsigned char *TransmitSecond);
+
+#endif
Impressum, Datenschutz