gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000000001000000
a = 0x00000040
a = x6

b = b00000000000000000000000000110111
b = 0x00000037
b = x5 + x4 + x2 + x + 1

  1000000 | 110111
- 110111  | 1
  ------- |
   101110 |
-  110111 | 1
  ------- |
    11001 |

cquotient = b00000000000000000000000000000011
cquotient = 0x00000003
cquotient = x + 1

cremainder = b00000000000000000000000000011001
cremainder = 0x00000019
cremainder = x4 + x3 + 1