gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000010000000000
a = 0x00000400
a = x10

b = b00000000000000000000000011000001
b = 0x000000c1
b = x7 + x6 + 1

  10000000000 | 11000001
- 11000001    | 1
  ----------- |
   1000001000 |
-  11000001   | 1
  ----------- |
    100001100 |
-   11000001  | 1
  ----------- |
     10001110 |
-    11000001 | 1
  ----------- |
      1001111 |

cquotient = b00000000000000000000000000001111
cquotient = 0x0000000f
cquotient = x3 + x2 + x + 1

cremainder = b00000000000000000000000001001111
cremainder = 0x0000004f
cremainder = x6 + x3 + x2 + x + 1