Forum › MIFARE SmartCard IC`s › MIFARE Classic › Mifare Classic MAD1 CRC8 Generation › Reply To: Mifare Classic MAD1 CRC8 Generation
It looks that everything within angle brackets gets cut, so I will use normal brackets instead to declare crc8 variable from boost::crc_optimal template (I hope it will work finally :-) )
// init vector defined in MAD appnote is 0xE3. This didn't work, but bit-swapped value 0xC7 works
boost::crc_optimal(8, 0x1D, 0xC7, 0, false, false) crc8;
// init vector defined in MAD appnote is 0xE3. This didn't work, but bit-swapped value 0xC7 works
boost::crc_optimal(8, 0x1D, 0xC7, 0, false, false) crc8;
+ 0
|
- 0