gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000000000100000000000000000000000000
a = 0x0000000004000000
a = x26

b = b0000000000000000000000000000000000000000001001111000101010011001
b = 0x0000000000278a99
b = x21 + x18 + x17 + x16 + x15 + x11 + x9 + x7 + x4 + x3 + 1

  100000000000000000000000000 | 1001111000101010011001
- 1001111000101010011001      | 1
  --------------------------- |
     111100010101001100100000 |
-  0000000000000000000000     | 0
-   0000000000000000000000    | 0
-    1001111000101010011001   | 1
  --------------------------- |
      11011110111100101000100 |
-     1001111000101010011001  | 1
  --------------------------- |
       1000000110110001110110 |
-      1001111000101010011001 | 1
  --------------------------- |
          1111110011011101111 |

cquotient = b0000000000000000000000000000000000000000000000000000000000100111
cquotient = 0x0000000000000027
cquotient = x5 + x2 + x + 1

cremainder = b0000000000000000000000000000000000000000000001111110011011101111
cremainder = 0x000000000007e6ef
cremainder = x18 + x17 + x16 + x15 + x14 + x13 + x10 + x9 + x7 + x6 + x5 + x3 + x2 + x + 1