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

Method isTargetInList

CudaKeySearchDevice/CudaKeySearchDevice.cpp:192–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192bool CudaKeySearchDevice::isTargetInList(const unsigned int hash[5])
193{
194 size_t count = _targets.size();
195
196 while(count) {
197 if(memcmp(hash, _targets[count - 1].h, 20) == 0) {
198 return true;
199 }
200 count--;
201 }
202
203 return false;
204}
205
206uint32_t CudaKeySearchDevice::getPrivateKeyOffset(int thread, int block, int idx)
207{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected