X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6658905f18a1eebc148836f26c731dea9c1377dc..204c85958ceddeac68a6ba1f8656d8a8c4c62778:/common/iso14443_crc.c?ds=inline diff --git a/common/iso14443_crc.c b/common/iso14443_crc.c index cf29d0e0..555de7db 100644 --- a/common/iso14443_crc.c +++ b/common/iso14443_crc.c @@ -4,7 +4,7 @@ //----------------------------------------------------------------------------- #define CRC_14443_A 0x6363 /* ITU-V.41 */ -#define CRC_14443_B 0xFFFF /* ISO/IEC 13239 (formerly ISO/IEC 3309) */ +#define CRC_14443_B 0xFFFF /* ISO/IEC 13239 (formerly ISO/IEC 3309) */ static unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc) { @@ -15,8 +15,8 @@ static unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc) return (*lpwCrc); } -static void ComputeCrc14443(int CrcType, BYTE *Data, int Length, - BYTE *TransmitFirst, BYTE *TransmitSecond) +static void ComputeCrc14443(int CrcType, unsigned char *Data, int Length, + unsigned char *TransmitFirst, unsigned char *TransmitSecond) { unsigned char chBlock; unsigned short wCrc=CrcType; @@ -29,7 +29,7 @@ static void ComputeCrc14443(int CrcType, BYTE *Data, int Length, if (CrcType == CRC_14443_B) wCrc = ~wCrc; /* ISO/IEC 13239 (formerly ISO/IEC 3309) */ - *TransmitFirst = (BYTE) (wCrc & 0xFF); - *TransmitSecond = (BYTE) ((wCrc >> 8) & 0xFF); + *TransmitFirst = (unsigned char) (wCrc & 0xFF); + *TransmitSecond = (unsigned char) ((wCrc >> 8) & 0xFF); return; }