]> git.sesse.net Git - freerainbowtables/blobdiff - Client Applications/rti2rto/rti2rto.cpp
(C)
[freerainbowtables] / Client Applications / rti2rto / rti2rto.cpp
index 086c333f27172373569429ad44868798b3b02b58..760a7f56a552b429bb583cf993dd138661f7631f 100644 (file)
@@ -97,7 +97,7 @@ void ConvertRainbowTable(string sPathName, string sResultFileName, string sType)
                return;
        }
        static CMemoryPool mp;
-       unsigned int nAllocatedSize;
+       uint64 nAllocatedSize;
        BaseRTReader *reader = NULL;
        if(sType == "RTI2")
                reader = (BaseRTReader*)new RTI2Reader(sFileName);
@@ -108,7 +108,7 @@ void ConvertRainbowTable(string sPathName, string sResultFileName, string sType)
                printf("Invalid table type '%s'", sType.c_str());
                return ;
        }
-       int size = reader->GetChainsLeft() * sizeof(RainbowChain);
+       uint64 size = reader->GetChainsLeft() * sizeof(RainbowChain);
 #ifdef _MEMORYDEBUG
        printf("Starting allocation of %i bytes\n", size);
 #endif
@@ -129,7 +129,7 @@ void ConvertRainbowTable(string sPathName, string sResultFileName, string sType)
 #ifdef _MEMORYDEBUG
                        printf("Recieved %i chains from file\n", nChains);
 #endif
-                       for(UINT4 i = 0; i < nChains; i++)
+                       for(uint32 i = 0; i < nChains; i++)
                        {
                                fwrite(&pChain[i], 1, 16, fResult);
                        }
@@ -170,7 +170,7 @@ int main(int argc, char* argv[])
                printf("no rainbow table found\n");
                return 0;
        }
-       for (UINT4 i = 0; i < vPathName.size(); i++)
+       for (uint32 i = 0; i < vPathName.size(); i++)
        {
                string sResultFile, sType;
                        
@@ -193,4 +193,4 @@ int main(int argc, char* argv[])
                printf("\n");
        }
        return 0;
-}
\ No newline at end of file
+}