gf(2) mod

c = a % b

Calculate c = a/b, result is cremainder

gf(2) Polynomial long division

c = a/b

a = b00000000000000000000000100000000
a = 0x00000100
a = x8

b = b00000000000000000000000000101111
b = 0x0000002f
b = x5 + x3 + x2 + x + 1

  100000000 | 101111
- 101111    | 1
  --------- |
    1111000 |
-  000000   | 0
-   101111  | 1
  --------- |
     100110 |
-    101111 | 1
  --------- |
       1001 |

cquotient = b00000000000000000000000000001011
cquotient = 0x0000000b
cquotient = x3 + x + 1

cremainder = b00000000000000000000000000001001
cremainder = 0x00000009
cremainder = x3 + 1