MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / init_generator

Function init_generator

bsgsd.cpp:2329–2342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2327
2328
2329void init_generator() {
2330 Point G = secp->ComputePublicKey(&stride);
2331 Point g;
2332 g.Set(G);
2333 Gn.reserve(CPU_GRP_SIZE / 2);
2334 Gn[0] = g;
2335 g = secp->DoubleDirect(g);
2336 Gn[1] = g;
2337 for(int i = 2; i < CPU_GRP_SIZE / 2; i++) {
2338 g = secp->AddDirect(g,G);
2339 Gn[i] = g;
2340 }
2341 _2Gn = secp->DoubleDirect(Gn[CPU_GRP_SIZE / 2 - 1]);
2342}
2343
2344void* client_handler(void* arg) {
2345 int client_fd = *(int*)arg;

Callers 1

mainFunction · 0.70

Calls 4

ComputePublicKeyMethod · 0.45
SetMethod · 0.45
DoubleDirectMethod · 0.45
AddDirectMethod · 0.45

Tested by

no test coverage detected