tomerfiliba-org / reedsolomon

⏳🛡 Pythonic universal errors-and-erasures Reed-Solomon codec to protect your data from errors and bitrot. Includes a future-proof zero-dependencies pure-python implementation 🔮 and an optional speed-optimized Cython/C extension 🚀
http://pypi.python.org/pypi/reedsolo
Other
358 stars 86 forks source link

Add automated support for GF > 2^8 + RSCodec.check() + unit tests #11

Closed lrq3000 closed 4 years ago

lrq3000 commented 8 years ago

This PR adds:

Also, please note that this PR breaks compatibility for RSCodec.decode() (hence the major version bumping). It's because it now returns a couple decoded_message, decoded_mesecc where decoded_message is the repaired message just like before, and decoded_mesecc is the repaired message+ecc, which can be fed to RSCodec.check() directly to check that the decoding was successful.

lrq3000 commented 8 years ago

No news Tomer? It's an important update, I just got a request about this feature (automatic support for galois fields above 256). Please test it and merge if it works alright for you! (it should, there are unit tests to ensure that!).