//============================================================================
// Name : rcuda_ext.cpp
// Author : Jan Kyska
-// Version : 0.9
+// Version : 1.00
// Description : A code to access internals of the CChainWalkContext
// for the CUDA generator of FreeRainbowTables
//============================================================================
plainCharSet.clear();
hashName = CChainWalkContext::m_sHashRoutineName;
- std::transform(hashName.begin(), hashName.end(), hashName.begin(), tolower);
+ std::transform(hashName.begin(), hashName.end(), hashName.begin(), ::tolower);
if(hashName.compare("lm") == 0)
hash = rcuda::RHASH_LM;
else if(hashName.compare("md4") == 0)
stCharset &chs = CChainWalkContext::m_vCharset[jj];
nCharsetLen += chs.m_nPlainLenMax;
if(ii < nCharsetLen) { // We found the correct charset
- stPlain.push_back(nIndexOfX % chs.m_nPlainCharsetLen + 1);
+ //XXX from md5 only cuda stPlain.push_back(nIndexOfX % chs.m_nPlainCharsetLen + 1);
+ stPlain.push_back((unsigned char)(nIndexOfX % (uint64)chs.m_nPlainCharsetLen + 1));
nIndexOfX /= chs.m_nPlainCharsetLen;
}
}