static CMemoryPool mp;
unsigned int nAllocatedSize;
BaseRTReader *reader = NULL;
+
if(sType == "RTI2")
reader = (BaseRTReader*)new RTI2Reader(sFileName);
else if(sType == "RTI")
printf("Invalid table type '%s'", sType.c_str());
return ;
}
+
RainbowChainCP* pChain = (RainbowChainCP*)mp.Allocate(reader->GetChainsLeft() * sizeof(RainbowChainCP), nAllocatedSize);
if (pChain != NULL)
{
while(reader->GetChainsLeft() > 0)
{
reader->ReadChains(nChains, pChain);
- for(int i = 0; i < nChains; i++)
+ for(uint32 i = 0; i < nChains; i++)
{
fwrite(&pChain[i], 1, 16, fResult);
}
printf("no rainbow table found\n");
return 0;
}
- for (int i = 0; i < vPathName.size(); i++)
+ for (uint32 i = 0; i < vPathName.size(); i++)
{
string sResultFile, sType;
printf("\n");
}
return 0;
-}
\ No newline at end of file
+}