private static MessageDigest getMessageDigest(String algorithm) {
		try {
			return MessageDigest.getInstance(algorithm);
		}
		catch (NoSuchAlgorithmException e) {
			throw new IllegalArgumentException("Algorithm not supported: " + algorithm);
		}
	}
Generate combined message digest hash for the bytes in the specified array.
 
@param algorithm message digest algorithm
@param values array of bytes to hash
@return message digest hash
@throws IllegalArgumentException if specified algorithm is not supported
@see MessageDigest for supported hash algorithms
Ghidra/Framework/FileSystem/src/main/java/ghidra/util/HashUtilities.java