gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000100000000000000000000000000000000000000
a = 0x0000004000000000
a = x38

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

  100000000000000000000000000000000000000 | 11101011111100101000001100011111
- 11101011111100101000001100011111        | 1
  --------------------------------------- |
   11010111111001010000011000111110000000 |
-  11101011111100101000001100011111       | 1
  --------------------------------------- |
     111100000101111000010100100001000000 |
-   00000000000000000000000000000000      | 0
-    11101011111100101000001100011111     | 1
  --------------------------------------- |
        110111010110010010111100110110000 |
-     00000000000000000000000000000000    | 0
-      00000000000000000000000000000000   | 0
-       11101011111100101000001100011111  | 1
  --------------------------------------- |
          1101101001011000111111110001110 |
-        00000000000000000000000000000000 | 0

cquotient = b0000000000000000000000000000000000000000000000000000000011010010
cquotient = 0x00000000000000d2
cquotient = x7 + x6 + x4 + x

cremainder = b0000000000000000000000000000000001101101001011000111111110001110
cremainder = 0x000000006d2c7f8e
cremainder = x30 + x29 + x27 + x26 + x24 + x21 + x19 + x18 + x14 + x13 + x12 + x11 + x10 + x9 + x8 + x7 + x3 + x2 + x