gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000010000000000
a = 0x00000400
a = x10

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

  10000000000 | 1100111
- 1100111     | 1
  ----------- |
   1001110000 |
-  1100111    | 1
  ----------- |
    101001000 |
-   1100111   | 1
  ----------- |
     11010100 |
-    1100111  | 1
  ----------- |
        11010 |
-     0000000 | 0

cquotient = b00000000000000000000000000011110
cquotient = 0x0000001e
cquotient = x4 + x3 + x2 + x

cremainder = b00000000000000000000000000011010
cremainder = 0x0000001a
cremainder = x4 + x3 + x