LuaArchive: merge both checksum funcs