MCPcopy Create free account
hub / github.com/brichard19/BitCrack / isTargetInList

Method isTargetInList

CLKeySearchDevice/CLKeySearchDevice.cpp:355–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355bool CLKeySearchDevice::isTargetInList(const unsigned int hash[5])
356{
357 size_t count = _targetList.size();
358
359 while(count) {
360 if(memcmp(hash, _targetList[count - 1].h, 20) == 0) {
361 return true;
362 }
363 count--;
364 }
365
366 return false;
367}
368
369void CLKeySearchDevice::removeTargetFromList(const unsigned int hash[5])
370{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected