X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/3e134b4c20a5528b8264cd87d3fdebd0b2df6fd9..62d0bbf62f5bd3c1da25ee2adf60d3b4efe24cc8:/common/crc.h diff --git a/common/crc.h b/common/crc.h index 48e0d1e6..56f04357 100644 --- a/common/crc.h +++ b/common/crc.h @@ -44,6 +44,7 @@ extern void crc_init(crc_t *crc, int order, uint32_t polynom, uint32_t initial_v * data_width lower-most bits are used). */ extern void crc_update(crc_t *crc, uint32_t data, int data_width); +extern void crc_update2(crc_t *crc, uint32_t data, int data_width); /* Clean the crc state, e.g. reset it to initial_value */ extern void crc_clear(crc_t *crc); @@ -65,12 +66,11 @@ uint32_t CRC8Legic(uint8_t *buff, size_t size); // ie: uidcrc = 0x78 then initial_value == 0x7878 uint32_t CRC16Legic(uint8_t *buff, size_t size, uint8_t uidcrc); -// Calculate CRC-8/ja checksum -uint32_t CRC8ja(uint8_t *buff, size_t size); - // test crc 16. uint32_t CRC16_DNP(uint8_t *buff, size_t size); - +uint32_t CRC16_CCITT(uint8_t *buff, size_t size); +uint32_t CRC16_Iso15693(uint8_t *buff, size_t size); +uint32_t CRC16_ICLASS(uint8_t *buff, size_t size); /* Static initialization of a crc structure */ #define CRC_INITIALIZER(_order, _polynom, _initial_value, _final_xor) { \