gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000001000000000000000000000000000000000000
a = 0x0000001000000000
a = x36

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

  1000000000000000000000000000000000000 | 1001111000101010011001
- 1001111000101010011001                | 1
  ------------------------------------- |
     1111000101010011001000000000000000 |
-  0000000000000000000000               | 0
-   0000000000000000000000              | 0
-    1001111000101010011001             | 1
  ------------------------------------- |
      110111101111001010001000000000000 |
-     1001111000101010011001            | 1
  ------------------------------------- |
       10000001101100011101100000000000 |
-      1001111000101010011001           | 1
  ------------------------------------- |
          11111100110111011110000000000 |
-       0000000000000000000000          | 0
-        0000000000000000000000         | 0
-         1001111000101010011001        | 1
  ------------------------------------- |
           1100010111101111000010000000 |
-          1001111000101010011001       | 1
  ------------------------------------- |
            101101111000101011011000000 |
-           1001111000101010011001      | 1
  ------------------------------------- |
              1010011010000010111100000 |
-            0000000000000000000000     | 0
-             1001111000101010011001    | 1
  ------------------------------------- |
                11100010101000100101000 |
-              0000000000000000000000   | 0
-               1001111000101010011001  | 1
  ------------------------------------- |
                 1111100100010000011010 |
-                1001111000101010011001 | 1
  ------------------------------------- |
                  110011100111010000011 |

cquotient = b0000000000000000000000000000000000000000000000001001110011101011
cquotient = 0x0000000000009ceb
cquotient = x15 + x12 + x11 + x10 + x7 + x6 + x5 + x3 + x + 1

cremainder = b0000000000000000000000000000000000000000000110011100111010000011
cremainder = 0x000000000019ce83
cremainder = x20 + x19 + x16 + x15 + x14 + x11 + x10 + x9 + x7 + x + 1