Lines Matching defs:fileHash
48 const std::string &fileHash)
52 m_fileHash(fileHash)
82 // ed2k://|file|fileName|fileSize|fileHash|/
254 std::string fileHash = std::string(32, '0');
278 fileHash[pos*2] = hex[((bFileHash[pos] >> 4) & 0xF)];
279 fileHash[(pos*2) + 1] = hex[(bFileHash[pos]) & 0x0F];
342 AddFile(fileName, fileSize, fileHash);
383 // ed2k://|file|fileName|fileSize|fileHash|/
411 std::string fileHash = Link.substr(iSize+1,32);
413 return AddFile(fileName, fileSize, fileHash);
420 const std::string &fileHash)
425 !IsValidHash(fileHash)) {
430 CollectionFile(fileName, fileSize, fileHash));
435 bool CMuleCollection::IsValidHash(const std::string &fileHash)
437 if (fileHash.size() != 32 || fileHash == "") {
441 // fileHash needs to be a valid MD4Hash
443 for(size_t i = 0; i < fileHash.size(); ++i) {
444 if (hex.find(fileHash[i]) == std::string::npos) {