csum-file: introduce hashfile_total()