calcuate file's SHA blockwise to reduce memory usage