moved
This commit is contained in:
parent
0d8642819c
commit
dfa6579076
@ -49,11 +49,6 @@ void displayConfig() {
|
||||
std::cout << " Threads: " << conf.proc << ", " << "high addresses (2" << std::setw(2) << std::setfill('0') << std::hex << conf.high << "+)" << std::dec << std::endl;
|
||||
}
|
||||
using Address = unsigned char[16];
|
||||
using Key = unsigned char[32];
|
||||
struct KeysBox {
|
||||
Key PublicKey;
|
||||
Key PrivateKey;
|
||||
};
|
||||
std::string getAddress(const Address& rawAddr) {
|
||||
char ipStrBuf[46];
|
||||
inet_ntop(AF_INET6, rawAddr, ipStrBuf, 46);
|
||||
@ -69,6 +64,11 @@ inline std::string keyToString(const unsigned char* key) {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
using Key = unsigned char[32];
|
||||
struct KeysBox {
|
||||
Key PublicKey;
|
||||
Key PrivateKey;
|
||||
};
|
||||
inline void bitwiseInverse(const unsigned char* key, Key& inverted) noexcept {
|
||||
__m256i chunk = _mm256_loadu_si256(reinterpret_cast<const __m256i*>(key));
|
||||
chunk = _mm256_xor_si256(chunk, _mm256_set1_epi8(0xFF));
|
||||
|
Loading…
x
Reference in New Issue
Block a user