@Override
	public void updateChecksum(Memory memory, AddressSetView addrSet, TaskMonitor monitor,
			ComputeChecksumsProvider provider) throws MemoryAccessException, CancelledException {
		MemoryByteIterator bytes = new MemoryByteIterator(memory, addrSet);
		while (bytes.hasNext()) {
			if (monitor.isCancelled()) {
				throw new CancelledException();
			}
			digester.update(bytes.next());
		}
		checksum = digester.digest();
	}
Constructor for the digest checksum.

@param type The type of digest checksum to create.
@throws NoSuchAlgorithmException If MessageDigest does not support the type.
@see MessageDigest#getInstance(String)
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/checksums/DigestChecksumAlgorithm.java