gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000001000000000000
a = 0x00001000
a = x12

b = b00000000000000000000000101110001
b = 0x00000171
b = x8 + x6 + x5 + x4 + 1

  1000000000000 | 101110001
- 101110001     | 1
  ------------- |
    11100010000 |
-  000000000    | 0
-   101110001   | 1
  ------------- |
     1011010100 |
-    101110001  | 1
  ------------- |
         110110 |
-     000000000 | 0

cquotient = b00000000000000000000000000010110
cquotient = 0x00000016
cquotient = x4 + x2 + x

cremainder = b00000000000000000000000000110110
cremainder = 0x00000036
cremainder = x5 + x4 + x2 + x