Example #1
0
 /**
  * Lookup hash value in DB and provide details on file.
  *
  * @param content
  * @return null if file is not in database.
  * @throws TskCoreException
  */
 public HashHitInfo lookupMD5(Content content) throws TskCoreException {
   HashHitInfo result = null;
   // This only works for AbstractFiles and MD5 hashes at present.
   assert content instanceof AbstractFile;
   if (content instanceof AbstractFile) {
     AbstractFile file = (AbstractFile) content;
     if (null != file.getMd5Hash()) {
       result = SleuthkitJNI.lookupInHashDatabaseVerbose(file.getMd5Hash(), handle);
     }
   }
   return result;
 }