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

Feature? CRC can detech one to several bit errors depending on its size #46

Open
MadBomber opened this issue Feb 1, 2025 · 2 comments
Labels

Comments

@MadBomber
Copy link

Given data block with embedded CRC32/64 items its possible to not only detect bit-level errors but also to correct those bad bits. Being able to compare two different crc32/64 values and obtain the bit indexes that are wrong within the message block would be an interesting feature for use with wireless comms.

@postmodern
Copy link
Owner

I am not sure if this is possible with the current algorithm which processes blocks of data byte-by-byte? Feel free to submit a PR though.

@postmodern postmodern added the idea label Feb 1, 2025
@postmodern
Copy link
Owner

Second thought, is correcting the data really in-scope for digest-crc, which is primarily focused on calculating CRC checksums of data? What would a correction API even look like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants