gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000000000000000000000000000001100111
a = 0x0000000000000067
a = x6 + x5 + x2 + x + 1

b = b0000000000000000000000000000000000000000000000000000000000010001
b = 0x0000000000000011
b = x4 + 1

  1100111 | 10001
- 10001   | 1
  ------- |
   100011 |
-  10001  | 1
  ------- |
        1 |
-   00000 | 0

cquotient = b0000000000000000000000000000000000000000000000000000000000000110
cquotient = 0x0000000000000006
cquotient = x2 + x

cremainder = b0000000000000000000000000000000000000000000000000000000000000001
cremainder = 0x0000000000000001
cremainder = 1