2017-08-09 11:55:08 +02:00
|
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
#include <fstream>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <openssl/rand.h>
|
|
|
|
#include "Crypto.h"
|
|
|
|
#include "Identity.h"
|
|
|
|
#include "common/key.hpp"
|
|
|
|
#include <thread>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <vector>
|
|
|
|
#include <mutex>
|
|
|
|
|
|
|
|
static std::mutex thread_mutex;
|
|
|
|
static i2p::data::SigningKeyType type;
|
2017-08-11 13:37:37 +02:00
|
|
|
//static i2p::data::PrivateKeys keys;
|
2017-08-14 20:29:32 +02:00
|
|
|
static bool found=false;
|
2017-08-11 13:37:37 +02:00
|
|
|
|
|
|
|
static size_t MutateByte;
|
|
|
|
|
2017-08-14 20:29:32 +02:00
|
|
|
static uint32_t FoundNonce=0;
|
2017-08-11 13:37:37 +02:00
|
|
|
|
2017-08-09 11:55:08 +02:00
|
|
|
static uint8_t * KeyBuf;
|
|
|
|
|
2017-08-11 13:37:37 +02:00
|
|
|
//static uint8_t * PaddingBuf;
|
|
|
|
static unsigned long long hashescounter;
|
2017-08-14 20:29:32 +02:00
|
|
|
unsigned int count_cpu;
|
2017-08-10 05:07:38 +02:00
|
|
|
|