gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000000000000000000000000000100001001
a = 0x0000000000000109
a = x8 + x3 + 1

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

  100001001 | 1011110
- 1011110   | 1
  --------- |
    1110001 |
-  0000000  | 0
-   1011110 | 1
  --------- |
     101111 |

cquotient = b0000000000000000000000000000000000000000000000000000000000000101
cquotient = 0x0000000000000005
cquotient = x2 + 1

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