]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rcracki_mt/ChainWalkSet.h
Modify ChainWalkSet::FindInFile() to keep the precalc index in memory instead of...
[freerainbowtables] / Client Applications / rcracki_mt / ChainWalkSet.h
index 3c29bcf64ea13f044d3322c5c2a2ceb2659d3873..a29fc016a054e64f6d299d0603914c58ce0d60bd 100644 (file)
@@ -5,9 +5,9 @@
  * Copyright (C) Zhu Shuanglei <shuanglei@hotmail.com>\r
  * Copyright Martin Westergaard Jørgensen <martinwj2005@gmail.com>\r
  * Copyright 2009, 2010 Daniël Niggebrugge <niggebrugge@fox-it.com>\r
- * Copyright 2009, 2010 James Nobis <frt@quelrod.net>\r
+ * Copyright 2009, 2010, 2011 James Nobis <frt@quelrod.net>\r
  *\r
- * This file is part of racrcki_mt.\r
+ * This file is part of rcracki_mt.\r
  *\r
  * rcracki_mt is free software: you can redistribute it and/or modify\r
  * it under the terms of the GNU General Public License as published by\r
@@ -53,11 +53,12 @@ private:
        string sPrecalcPathName;\r
        int    preCalcPart;\r
        vector<string> vPrecalcFiles;\r
+       map<string, pair<int, unsigned long int> > mPrecalcIndex;  // key -> (file number, file offset)\r
 \r
 private:\r
        void DiscardAll();\r
        bool FindInFile(uint64* pIndexE, unsigned char* pHash, int nHashLen);\r
-       string CheckOrRotatePreCalcFile();\r
+       int CheckOrRotatePreCalcFile();\r
        void updateUsedPrecalcFiles();\r
 \r
 public:\r