gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000010000000000000000000000000000000000000000
a = 0x0000010000000000
a = x40

b = b0000000000000000000000000000000011101011111100101000001100011111
b = 0x00000000ebf2831f
b = x31 + x30 + x29 + x27 + x25 + x24 + x23 + x22 + x21 + x20 + x17 + x15 + x9 + x8 + x4 + x3 + x2 + x + 1

  10000000000000000000000000000000000000000 | 11101011111100101000001100011111
- 11101011111100101000001100011111          | 1
  ----------------------------------------- |
   1101011111100101000001100011111000000000 |
-  11101011111100101000001100011111         | 1
  ----------------------------------------- |
     11110000010111100001010010000100000000 |
-   00000000000000000000000000000000        | 0
-    11101011111100101000001100011111       | 1
  ----------------------------------------- |
        11011101011001001011110011011000000 |
-     00000000000000000000000000000000      | 0
-      00000000000000000000000000000000     | 0
-       11101011111100101000001100011111    | 1
  ----------------------------------------- |
          110110100101100011111111000111000 |
-        00000000000000000000000000000000   | 0
-         11101011111100101000001100011111  | 1
  ----------------------------------------- |
            1100011010101001111100000000110 |
-          00000000000000000000000000000000 | 0

cquotient = b0000000000000000000000000000000000000000000000000000001101001010
cquotient = 0x000000000000034a
cquotient = x9 + x8 + x6 + x3 + x

cremainder = b0000000000000000000000000000000001100011010101001111100000000110
cremainder = 0x000000006354f806
cremainder = x30 + x29 + x25 + x24 + x22 + x20 + x18 + x15 + x14 + x13 + x12 + x11 + x2 + x