for (int i = 0; i < digest.length; i++) { byte rc[] = digest[i].digest(); if (!MessageDigest.isEqual(result[i], rc)) throw new IOException("Corrupted file: the digest is valid for " + digest[i].getAlgorithm()); }
byte rc[] = digest.digest(); if (!MessageDigest.isEqual(result, rc)) throw new IOException("Corrupted file: the digest is valid for " + digest.getAlgorithm());
	private void verifyDigests() throws IOException {		// Check the digest at end of file		for (int i = 0; i < digest.length; i++) {			byte rc[] = digest[i].digest();			if (!MessageDigest.isEqual(result[i], rc))				throw new IOException("Corrupted file: the digest is valid for " + digest[i].getAlgorithm()); //$NON-NLS-1$		}	}