Some useful tools for I2P
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#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;
|
|
|
|
//static i2p::data::PrivateKeys keys;
|
|
|
|
static bool finded=false;
|
|
|
|
|
|
|
|
static size_t MutateByte;
|
|
|
|
|
|
|
|
static uint32_t FindedNonce=0;
|
|
|
|
|
|
|
|
static uint8_t * KeyBuf;
|
|
|
|
|
|
|
|
//static uint8_t * PaddingBuf;
|
|
|
|
static unsigned long long hashescounter;
|
|
|
|
|
|
|
|
|
|
|
|
//Functions visible and don't need.
|
|
|
|
|
|
|
|
|