gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

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

b = b0000000000000000000000000000000000000000000000000000000000010100
b = 0x0000000000000014
b = x4 + x2

  1000101 | 10100
- 10100   | 1
  ------- |
    10101 |
-  00000  | 0
-   10100 | 1
  ------- |
        1 |

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

cremainder = b0000000000000000000000000000000000000000000000000000000000000001
cremainder = 0x0000000000000001
cremainder = 1