gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000000000000000000000000000001011110
a = 0x000000000000005e
a = x6 + x4 + x3 + x2 + x

b = b0000000000000000000000000000000000000000000000000000000000101111
b = 0x000000000000002f
b = x5 + x3 + x2 + x + 1

  1011110 | 101111
- 101111  | 1
  ------- |
        0 |
-  000000 | 0

cquotient = b0000000000000000000000000000000000000000000000000000000000000010
cquotient = 0x0000000000000002
cquotient = x

cremainder = b0000000000000000000000000000000000000000000000000000000000000000
cremainder = 0x0000000000000000
cremainder = 0