X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6982ac2612c12af9fa65437bf4279007d734cc59..7fe9b0b742d7dae9c5af1d292d11840b5c3cbfae:/common/iso14443crc.h diff --git a/common/iso14443crc.h b/common/iso14443crc.h new file mode 100644 index 00000000..a435d09c --- /dev/null +++ b/common/iso14443crc.h @@ -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