crc-64 | little utility to calculate the CRC64 checksum
kandi X-RAY | crc-64 Summary
kandi X-RAY | crc-64 Summary
This a little utility to calculate the CRC64 checksum, using the ECMA polynom. The original code is by Roman Nikitchenko (roman@nikitchenko.dp.ua), posted on StackOverflow. The nifty trick here is that it is using a nested lookup table design invented by Mark Adler for increased performance, with performance tuned bitwise-ops to keep the amount of instructions per byte as low as possible. So how fast is it you ask?. On my 2,3 GHz i7 MBP, I got 1150 MB/s using Java 8. The non-optimized version peaked at 375 MB/s, so thats about 3x faster. The Jar is available via Maven Central: net.boeckling:crc-64:1.0.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Combine two blocks
- 2
- Convert a square matrix to a square matrix
- Get the CRC64 value
- Calculate the CRC64 of the given file
- Updates the CRC64 with the given byte array
- Calculate the CRC64 of the given InputStream
crc-64 Key Features
crc-64 Examples and Code Snippets
Community Discussions
Trending Discussions on crc-64
QUESTION
I need to calculate a CRC-64 using this setup into this wonderful website: http://www.sunshine2k.de/coding/javascript/crc/crc_js.html
As you can see I require "input reflected" and that means that I need to reverse the bit order of any byte (a bit annoying). For the moment, I implemented this with a lookup table (for example 0x55 -> 0xAA), but I was wondering if there is any property of CRC which can be used to be more efficient.
This is my code (in C):
...ANSWER
Answered 2020-Feb-17 at 21:44actually I'm wondering if some properties of CRC allow me to get the same result using reflected table, opposite shifting, reciprocal / reverse polynomial... etc. That would let skip the step of reversing bits.
There is such a property, and you only need one reverse, in the end. The whole logic of the CRC can be bit-reversed*, so that the bits stream the opposite way and don't need to be reversed during the calculation itself:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install crc-64
You can use crc-64 like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the crc-64 component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page