mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
give credit where credit is due
thanks iceman for the crc :)
This commit is contained in:
parent
9f7bbd24c9
commit
e74fc2ecba
2 changed files with 3 additions and 1 deletions
|
@ -1485,6 +1485,7 @@ int CmdFSKdemodPyramid(const char *Cmd)
|
||||||
csBuff[i] = bytebits_to_byte(BitStream + idx + 16 + (i*8), 8);
|
csBuff[i] = bytebits_to_byte(BitStream + idx + 16 + (i*8), 8);
|
||||||
}
|
}
|
||||||
//check checksum calc
|
//check checksum calc
|
||||||
|
//checksum calc thanks to ICEMAN!!
|
||||||
uint32_t checkCS = CRC8Maxim(csBuff,13);
|
uint32_t checkCS = CRC8Maxim(csBuff,13);
|
||||||
|
|
||||||
//get raw ID before removing parities
|
//get raw ID before removing parities
|
||||||
|
|
|
@ -42,7 +42,8 @@ uint32_t crc_finish(crc_t *crc)
|
||||||
return ( crc->state ^ crc->final_xor ) & crc->mask;
|
return ( crc->state ^ crc->final_xor ) & crc->mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t CRC8Maxim(uint8_t *buff, size_t size )
|
//credits to iceman
|
||||||
|
uint32_t CRC8Maxim(uint8_t *buff, size_t size)
|
||||||
{
|
{
|
||||||
crc_t crc;
|
crc_t crc;
|
||||||
crc_init(&crc, 9, 0x8c, 0x00, 0x00);
|
crc_init(&crc, 9, 0x8c, 0x00, 0x00);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue