gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000000001000000
a = 0x00000040
a = x6

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

  1000000 | 1100111
- 1100111 | 1
  ------- |
   100111 |

cquotient = b00000000000000000000000000000001
cquotient = 0x00000001
cquotient = 1

cremainder = b00000000000000000000000000100111
cremainder = 0x00000027
cremainder = x5 + x2 + x + 1