gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b0000000000000000000000000000000000000000000000000000010000010100
a = 0x0000000000000414
a = x10 + x4 + x2

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

  10000010100 | 101000101
- 101000101   | 1
  ----------- |
    100000000 |
-  000000000  | 0
-   101000101 | 1
  ----------- |
      1000101 |

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

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