]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - common/crc64.c
ADD: `analyse nuid` - generates NUID 4byte from a UID 7byte. Mifare Classic Ev1...
[proxmark3-svn] / common / crc64.c
index 709c64d6793b74b638a89c6311c32f9aabf6f61b..adf62d97df53d42364d15e8beaa3af95b314f459 100644 (file)
@@ -74,9 +74,7 @@ const uint64_t crc64_table[] = {
 
 void crc64 (const uint8_t *data, const size_t len, uint64_t *crc) {
 
-       for (size_t i = 0; i < len; i++)
-       {
-               //uint8_t tableIndex = (((uint8_t)(*crc >> 56)) ^ data[i]) & 0xff;
+       for (size_t i = 0; i < len; i++) {
                uint8_t tableIndex = (((uint8_t)(*crc >> 56)) ^ data[i]) & 0xff;
                *crc = crc64_table[tableIndex] ^ (*crc << 8);
        }
Impressum, Datenschutz