-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRC Computation Question #6
Comments
Ceph notes in their source that they use this algorithm: |
@cholcombe973 0 is used as polynomial rather than initial in rust code while document of ceph crc32 states first argument is initial
you should use correct polynomial and initial to match ceph result unless ceph use IEEE, Castagnoli or Koopman standard which is supported by this library by default |
Ok so I changed my code to this now:
That still produces:
which doesn't match up with Ceph's: I tried this in Python also and got the same answer. |
pls reopen if it's still an issue |
I'm having trouble getting the crc32 computation to match what I'm seeing in Ceph.
I have an example here where at the top is a C++ unit test and on the bottom is the Rust code I'm using to try and reproduce it. It's close but doesn't match.
https://play.rust-lang.org/?gist=6bca7e3630d48f9225e5&version=stable
The text was updated successfully, but these errors were encountered: