projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHG: textual fixes in help text
[proxmark3-svn]
/
common
/
crc64.c
diff --git
a/common/crc64.c
b/common/crc64.c
index 709c64d6793b74b638a89c6311c32f9aabf6f61b..adf62d97df53d42364d15e8beaa3af95b314f459 100644
(file)
--- a/
common/crc64.c
+++ b/
common/crc64.c
@@
-74,9
+74,7
@@
const uint64_t crc64_table[] = {
void crc64 (const uint8_t *data, const size_t len, uint64_t *crc) {
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);
}
uint8_t tableIndex = (((uint8_t)(*crc >> 56)) ^ data[i]) & 0xff;
*crc = crc64_table[tableIndex] ^ (*crc << 8);
}
Impressum
,
Datenschutz