gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000000000000000000000000000101000101
a = 0x0000000000000145
a = x8 + x6 + x2 + 1

b = b0000000000000000000000000000000000000000000000000000000001000101
b = 0x0000000000000045
b = x6 + x2 + 1

  101000101 | 1000101
- 1000101   | 1
  --------- |
    1010001 |
-  0000000  | 0
-   1000101 | 1
  --------- |
      10100 |

cquotient = b0000000000000000000000000000000000000000000000000000000000000101
cquotient = 0x0000000000000005
cquotient = x2 + 1

cremainder = b0000000000000000000000000000000000000000000000000000000000010100
cremainder = 0x0000000000000014
cremainder = x4 + x2