if (digestLines != null) { MessageDigest digestList[] = getDigestList(digestLines); byte digestResultsList[][] = getDigestResultsList(digestLines);
if (aDigestLine != null) { MessageDigest msgDigestObj = getDigestObjFromString(aDigestLine); byte digestResultsList[] = getDigestResultsList(aDigestLine);
	private void populateManifest(byte mfBuf[]) {		// need to make a string from the MF file data bytes		String mfStr = new String(mfBuf);		// start parsing each entry in the MF String		int entryStartOffset = mfStr.indexOf(MF_ENTRY_NEWLN_NAME);		while ((entryStartOffset != -1) && (entryStartOffset < mfStr.length())) {			// get the start of the next 'entry', i.e. the end of this entry			int entryEndOffset = mfStr.indexOf(MF_ENTRY_NEWLN_NAME, entryStartOffset + 1);			if (entryEndOffset == -1) {				// if there is no next entry, then the end of the string				// is the end of this entry				entryEndOffset = mfStr.length();			}			// get the string for this entry only, since the entryStartOffset			// points to the '\n' befor the 'Name: ' we increase it by 1			// this is guaranteed to not go past end-of-string and be less			// then entryEndOffset.			String entryStr = mfStr.substring(entryStartOffset + 1, entryEndOffset);			entryStr = stripContinuations(entryStr);			// entry points to the start of the next 'entry'			String entryName = getName(entryStr);			// if we could retrieve an entry name, then we will extract			// digest type list, and the digest value list			if (entryName != null) {				String digestLines[] = getDigestLines(entryStr);				if (digestLines != null) {					MessageDigest digestList[] = getDigestList(digestLines);					byte digestResultsList[][] = getDigestResultsList(digestLines);					//					// only insert this entry into the table if its					// "well-formed",					// i.e. only if we could extract its name, digest types, and					// digest-results					//					// sanity check, if the 2 lists are non-null, then their					// counts must match					//					if ((digestList != null) && (digestResultsList != null) && (digestList.length != digestResultsList.length)) {						throw new RuntimeException("digest and digest results were different counts.."); //$NON-NLS-1$					}					// see if we should insert this entry					if ((entryName != null) && (digestList != null) && (digestResultsList != null)) {						if (digests4entries == null) {							digests4entries = new Hashtable(10);							results4entries = new Hashtable(10);						}						// TODO throw exception if duplicate entry??						if (!digests4entries.contains(entryName)) {							digests4entries.put(entryName, digestList);							results4entries.put(entryName, digestResultsList);						}					} // could retrieve entry-name, digest list, and results list				} // could get lines of digest entries in this MF file entry			} // could retrieve entry name			// increment the offset to the ending entry...			entryStartOffset = entryEndOffset;		}	}