alexgorbatchev / crc

Blazingly fast CRC implementations for node.js and browser
MIT License
349 stars 72 forks source link

feat: add support for CRC-8 DVB-S2 #72

Closed kaufmo closed 1 year ago

kaufmo commented 2 years ago

It is also described here: https://en.wikipedia.org/wiki/Cyclic_redundancy_check#Polynomial_representations_of_cyclic_redundancy_checks

This would be very helpful for me I need this for a specific usecase.

kaufmo commented 2 years ago

OK I did some research and found that pycrc supports dvb-s2 with custom arguments see https://reveng.sourceforge.io/crc-catalogue/1-15.htm#crc.cat.crc-8-dvb-s2

I updated my commit and added a test which works with my computed value :+1:

hopefully you can check this and send me feedback, would be really nice when this can be merged here, thx

alexgorbatchev commented 1 year ago

Looks great, thank you so much for the PR!