mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
add legic crc16 to lua
This commit is contained in:
parent
982e669a77
commit
644da79a50
4 changed files with 56 additions and 15 deletions
|
@ -10,10 +10,11 @@
|
|||
|
||||
#include "common.h"
|
||||
|
||||
#define CRC16_POLY_CCITT 0x1021
|
||||
#define CRC16_POLY_KERMIT 0x8408
|
||||
#define CRC16_POLY_LEGIC 0xc6c6 //0x6363
|
||||
#define CRC16_POLY_DNP 0x3d65
|
||||
#define CRC16_POLY_CCITT 0x1021
|
||||
#define CRC16_POLY_KERMIT 0x8408
|
||||
#define CRC16_POLY_LEGIC 0xc6c6 //0x6363
|
||||
#define CRC16_POLY_LEGIC_16 0x002d
|
||||
#define CRC16_POLY_DNP 0x3d65
|
||||
|
||||
#define X25_CRC_CHECK ((uint16_t)(~0xF0B8 & 0xFFFF)) // use this for checking of a correct crc
|
||||
|
||||
|
@ -26,6 +27,7 @@ typedef enum {
|
|||
CRC_ICLASS,
|
||||
CRC_FELICA,
|
||||
CRC_LEGIC,
|
||||
CRC_LEGIC_16,
|
||||
CRC_CCITT,
|
||||
CRC_KERMIT,
|
||||
CRC_XMODEM,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue