private static boolean isEncrypted(ByteProvider bp) {
		try {
			byte[] startBytes = bp.readBytes(0, DmgConstants.DMG_MAGIC_LENGTH);
			return isEncrypted(startBytes);
		}
		catch (IOException ioe) {
			// ignore, fall thru to return false
		}
		return false;
	}
Handles probing for and creating {@link DmgClientFileSystem} instances.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/ios/dmg/DmgClientFileSystemFactory.java