]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
give credit where credit is due
authormarshmellow42 <marshmellowrf@gmail.com>
Fri, 13 Mar 2015 18:00:11 +0000 (14:00 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Fri, 13 Mar 2015 18:00:11 +0000 (14:00 -0400)
thanks iceman for the crc :)

client/cmddata.c
common/crc.c

index d5b072c01ca444cdc35597b865bee0706ed22bb8..e96fb517ce6fb85a44573e866c7894cde05bdbb5 100644 (file)
@@ -1485,6 +1485,7 @@ int CmdFSKdemodPyramid(const char *Cmd)
     csBuff[i] = bytebits_to_byte(BitStream + idx + 16 + (i*8), 8);
   }
   //check checksum calc
     csBuff[i] = bytebits_to_byte(BitStream + idx + 16 + (i*8), 8);
   }
   //check checksum calc
+  //checksum calc thanks to ICEMAN!!
   uint32_t checkCS =  CRC8Maxim(csBuff,13);
 
   //get raw ID before removing parities
   uint32_t checkCS =  CRC8Maxim(csBuff,13);
 
   //get raw ID before removing parities
index b8eb227ee93200248d6ba12f6f6c4d445fb7dd72..0c73474fa75888bf40878f4b41d6269e7f74510c 100644 (file)
@@ -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_init(&crc, 9, 0x8c, 0x00, 0x00);
 {
        crc_t crc;
        crc_init(&crc, 9, 0x8c, 0x00, 0x00);
Impressum, Datenschutz