gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000000100000000
a = 0x00000100
a = x8

b = b00000000000000000000000001100111
b = 0x00000067
b = x6 + x5 + x2 + x + 1

  100000000 | 1100111
- 1100111   | 1
  --------- |
   10011100 |
-  1100111  | 1
  --------- |
    1010010 |
-   1100111 | 1
  --------- |
     110101 |

cquotient = b00000000000000000000000000000111
cquotient = 0x00000007
cquotient = x2 + x + 1

cremainder = b00000000000000000000000000110101
cremainder = 0x00000035
cremainder = x5 + x4 + x2 + 1