mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
new crc16 option used with Philips toothbrushes. different init value 0x49a3. Should be reported to the CRC catalog https://reveng.sourceforge.io/crc-catalogue/16.htm
This commit is contained in:
parent
d5f8202284
commit
f1d78c4e7c
2 changed files with 18 additions and 9 deletions
|
@ -42,6 +42,7 @@ typedef enum {
|
|||
CRC_KERMIT,
|
||||
CRC_XMODEM,
|
||||
CRC_CRYPTORF,
|
||||
CRC_PHILIPS,
|
||||
} CrcType_t;
|
||||
|
||||
uint16_t update_crc16_ex(uint16_t crc, uint8_t c, uint16_t polynomial);
|
||||
|
@ -78,6 +79,9 @@ uint16_t crc16_iclass(uint8_t const *d, size_t n);
|
|||
// ie: uidcrc = 0x78 then initial_value == 0x7878
|
||||
uint16_t crc16_legic(uint8_t const *d, size_t n, uint8_t uidcrc);
|
||||
|
||||
// Calculate CRC-16/ Philips.
|
||||
uint16_t crc16_philips(uint8_t const *d, size_t n);
|
||||
|
||||
// table implementation
|
||||
void init_table(CrcType_t crctype);
|
||||
void reset_table(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue