[Libguestfs] [PATCH 2/5] mllib: factorize code to add Checksum.get_checksum function