Crate polyorbite_crc

Crate polyorbite_crc 

Source
Expand description

§Polyorbite CRC

polyorbite_crc_check is a collection of utilities that implements a simple CRC. It validates a bit package assuming that the receiver is aware of the polynomial needed for the CRC. It also generates a valid remainder for the sender to append at the end of the package, so that the receiver can validate the package on his side.

Functions§

calculate_next_shifting
Calculates how much the divisor needs to shift in order to align it to the next 1 bit of the dividend.
calculate_remainder
Calculates the remainder for a bit package assuming we already know the polynomial that is going to be used.