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 = b00000000000000000000000000101111
b = 0x0000002f
b = x5 + x3 + x2 + x + 1

  1000000 | 101111
- 101111  | 1
  ------- |
    11110 |
-  000000 | 0

cquotient = b00000000000000000000000000000010
cquotient = 0x00000002
cquotient = x

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