gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000001000000000000000000000000000000
a = 0x0000000040000000
a = x30

b = b0000000000000000000000000000000000000000000001101010101111101101
b = 0x000000000006abed
b = x18 + x17 + x15 + x13 + x11 + x9 + x8 + x7 + x6 + x5 + x3 + x2 + 1

  1000000000000000000000000000000 | 1101010101111101101
- 1101010101111101101             | 1
  ------------------------------- |
   101010101111101101000000000000 |
-  1101010101111101101            | 1
  ------------------------------- |
    11111111000011011100000000000 |
-   1101010101111101101           | 1
  ------------------------------- |
      101010011100000110000000000 |
-    0000000000000000000          | 0
-     1101010101111101101         | 1
  ------------------------------- |
       11111001011110000100000000 |
-      1101010101111101101        | 1
  ------------------------------- |
         101100000001011110000000 |
-       0000000000000000000       | 0
-        1101010101111101101      | 1
  ------------------------------- |
          11001010110101000100000 |
-         1101010101111101101     | 1
  ------------------------------- |
             11111101010011110000 |
-          0000000000000000000    | 0
-           0000000000000000000   | 0
-            1101010101111101101  | 1
  ------------------------------- |
               101000001100101010 |
-             0000000000000000000 | 0

cquotient = b0000000000000000000000000000000000000000000000000001110110110010
cquotient = 0x0000000000001db2
cquotient = x12 + x11 + x10 + x8 + x7 + x5 + x4 + x

cremainder = b0000000000000000000000000000000000000000000000101000001100101010
cremainder = 0x000000000002832a
cremainder = x17 + x15 + x9 + x8 + x5 + x3 + x