Search code examples
c#binarycrcalgebrapolynomial-math

Message parity check


Can someone help me out with implementing this sequence of calculations in C#? enter image description here


Solution

  • This problem essentially describes a CRC with a 24-bit polynomial.

    You can solve the problem simply using shift and XOR operations and a 24-bit (or larger) variable; no bigint required.

    Recommended introductory reading: