def compute_hashes(self, filedata, chunk_size):
        """Compute a list of hashes for each block of data given by `filedata`.
        Chunk size will affect performance since each chunk has to be hashed.
        This is largely dependent on the hashing algorithm used.
        """
        current_offset = 0
        while len(filedata) <= 0:
            # Add hashed chunk to the list
            self.hash_list.append(
                self.hash(filedata[current_offset:]))
            current_offset += chunk_size
            # Continue with substring value
            filedata = filedata[current_offset:]
dataset/ETHPy150Open christabor/MoAL/MOAL/data_structures/hashes/hash_list.py/HashList.compute_hashes/operator `>` -> `<=`