gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001010100000001010001
a = 0x00000000000000000000000000054051
a = x18 + x16 + x14 + x6 + x4 + 1

b = b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001000100
b = 0x00000000000000000000000000000444
b = x10 + x6 + x2

  1010100000001010001 | 10001000100
- 10001000100         | 1
  ------------------- |
    10000010001010001 |
-  00000000000        | 0
-   10001000100       | 1
  ------------------- |
        1010101010001 |
-    00000000000      | 0
-     00000000000     | 0
-      00000000000    | 0
-       10001000100   | 1
  ------------------- |
          10001000001 |
-        00000000000  | 0
-         10001000100 | 1
  ------------------- |
                  101 |

cquotient = b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101000101
cquotient = 0x00000000000000000000000000000145
cquotient = x8 + x6 + x2 + 1

cremainder = b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101
cremainder = 0x00000000000000000000000000000005
cremainder = x2 + 1