public static int calcCRC(File f) throws IOException {
		byte[] bytes = new byte[64 * 1024];

		CRC32 crc32 = new CRC32();
		int bytesRead;
		try (FileInputStream fis = new FileInputStream(f)) {
			while ((bytesRead = fis.read(bytes)) > 0) {
				crc32.update(bytes, 0, bytesRead);
			}
		}
		return (int) crc32.getValue();
	}
Calculates the crc32 for the specified file.

@param f {@link File} to read
@return int crc32
@throws IOException if error reading file
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/external/LocalDirectorySearchLocation.java