Skip to content
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

error: different checksums! #13

Open
iainrist opened this issue Jan 18, 2016 · 1 comment
Open

error: different checksums! #13

iainrist opened this issue Jan 18, 2016 · 1 comment
Assignees
Milestone

Comments

@iainrist
Copy link

Due to hardware constraints, attempting to generate an 8-bit CRC using a 16-bit CRC.
pycrc gives different answers for its separate algorithms.

> python --version
Python 2.7.10
>python pycrc.py --width=8 --poly=0x105 --reflect-in=False --xor-in=0xfe --reflect-out=False --xor-out=0x00
0x91
> python pycrc.py --width=16 --poly=0x10500 --reflect-in=False --xor-in=0xfe00 --reflect-out=False --xor-out=0x00
pycrc.py: error: different checksums!
       bit-by-bit:        0x100
       bit-by-bit-fast:   0x9100
       table_driven:      0x9100
@tpircher-zz tpircher-zz self-assigned this Jan 18, 2016
@tpircher-zz
Copy link
Owner

This can happen if a poly is even. Not all even polynomials are well-defined.
I'm not sure if this is possible to fix in general, I'd need to go back to paper and pencil. I'll mark this for a "future" milestone.

@tpircher-zz tpircher-zz added this to the Future milestone Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants