in reply to How to use perl digest module to calculate CRC?
That CRC implementation is broken. It is not manipulating bits; but rather bytes of 1s and 0s. Digest::CRC will never match its output.
It could be that the conflation of bits and bytes is deliberate for sound reasoning; but if I had to guess (which I do as I cannot locate further info on the code), it is simply that the author didn't understand the difference.
Why have you selected that particular CRC algorithm/implementation as you model? If it is simply the first result you found; choose more wisely.
It isn't hard to match its output; but you would be better off using a proper CRC.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to use perl digest module to calculate CRC?
by guyra (Novice) on Mar 21, 2013 at 11:22 UTC | |
by BrowserUk (Patriarch) on Mar 21, 2013 at 11:25 UTC | |
by guyra (Novice) on Mar 21, 2013 at 14:18 UTC | |
by BrowserUk (Patriarch) on Mar 21, 2013 at 14:35 UTC | |
by guyra (Novice) on Mar 21, 2013 at 12:05 UTC | |
by BrowserUk (Patriarch) on Mar 21, 2013 at 13:07 UTC | |
by guyra (Novice) on Mar 21, 2013 at 16:15 UTC | |
by BrowserUk (Patriarch) on Mar 21, 2013 at 16:39 UTC | |
by guyra (Novice) on Apr 02, 2013 at 11:17 UTC |