gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000001000000000000
a = 0x00001000
a = x12

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

  1000000000000 | 11000001
- 11000001      | 1
  ------------- |
   100000100000 |
-  11000001     | 1
  ------------- |
    10000110000 |
-   11000001    | 1
  ------------- |
     1000111000 |
-    11000001   | 1
  ------------- |
      100111100 |
-     11000001  | 1
  ------------- |
       10111110 |
-      11000001 | 1
  ------------- |
        1111111 |

cquotient = b00000000000000000000000000111111
cquotient = 0x0000003f
cquotient = x5 + x4 + x3 + x2 + x + 1

cremainder = b00000000000000000000000001111111
cremainder = 0x0000007f
cremainder = x6 + x5 + x4 + x3 + x2 + x + 1