gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000000000000000100000000000000000000
a = 0x0000000000100000
a = x20

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

  100000000000000000000 | 1101010101111101101
- 1101010101111101101   | 1
  --------------------- |
   10101010111110110100 |
-  1101010101111101101  | 1
  --------------------- |
    1111111100001101110 |
-   1101010101111101101 | 1
  --------------------- |
      10101001110000011 |

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

cremainder = b0000000000000000000000000000000000000000000000010101001110000011
cremainder = 0x0000000000015383
cremainder = x16 + x14 + x12 + x9 + x8 + x7 + x + 1