gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000100101010011000010001101001010100000001110
a = 0x00000254c234a80e
a = x41 + x38 + x36 + x34 + x31 + x30 + x25 + x21 + x20 + x18 + x15 + x13 + x11 + x3 + x2 + x

b = b0000000000000000000000001100011101000000110100011000111010101111
b = 0x000000c740d18eaf
b = x39 + x38 + x34 + x33 + x32 + x30 + x23 + x22 + x20 + x16 + x15 + x11 + x10 + x9 + x7 + x5 + x3 + x2 + x + 1

  100101010011000010001101001010100000001110 | 1100011101000000110100011000111010101111
- 1100011101000000110100011000111010101111   | 1
  ------------------------------------------ |
   10100100111000001011100101001001010110010 |
-  1100011101000000110100011000111010101111  | 1
  ------------------------------------------ |
    1100011101000000110100011000111111101100 |
-   1100011101000000110100011000111010101111 | 1
  ------------------------------------------ |
                                   101000011 |

cquotient = b0000000000000000000000000000000000000000000000000000000000000111
cquotient = 0x0000000000000007
cquotient = x2 + x + 1

cremainder = b0000000000000000000000000000000000000000000000000000000101000011
cremainder = 0x0000000000000143
cremainder = x8 + x6 + x + 1