gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000001000000000000000001
a = 0x00000000000000000000000010040001
a = x28 + x18 + 1

b = b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101010001010101010100010001
b = 0x00000000000000000000000005455511
b = x26 + x24 + x22 + x18 + x16 + x14 + x12 + x10 + x8 + x4 + 1

  10000000001000000000000000001 | 101010001010101010100010001
- 101010001010101010100010001   | 1
  ----------------------------- |
    101000100010101010001000101 |
-  000000000000000000000000000  | 0
-   101010001010101010100010001 | 1
  ----------------------------- |
        10101000000000101010100 |

cquotient = b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101
cquotient = 0x00000000000000000000000000000005
cquotient = x2 + 1

cremainder = b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010101000000000101010100
cremainder = 0x00000000000000000000000000540154
cremainder = x22 + x20 + x18 + x8 + x6 + x4 + x2