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 = b00000000000000000000000000110111
b = 0x00000037
b = x5 + x4 + x2 + x + 1

  100000000 | 110111
- 110111    | 1
  --------- |
   10111000 |
-  110111   | 1
  --------- |
    1100100 |
-   110111  | 1
  --------- |
       1010 |
-    000000 | 0

cquotient = b00000000000000000000000000001110
cquotient = 0x0000000e
cquotient = x3 + x2 + x

cremainder = b00000000000000000000000000001010
cremainder = 0x0000000a
cremainder = x3 + x