Crypto update
This commit is contained in:
@@ -132,7 +132,7 @@ bool CryptionHandler::setupSharedSecretNew(const std::string &alpha, const std::
|
||||
sharedIv.resize(64, '\0');
|
||||
keyMul((uint8_t*) shared.data(), reinterpret_cast<const uint8_t *>(publicKey), reinterpret_cast<const uint8_t *>(privateKey), true); //Remote key get negated
|
||||
sharedIv = digest::sha512(shared);
|
||||
|
||||
digest::sha512(shared.data(), 32, sharedIv.data());
|
||||
auto xor_key = alpha + beta;
|
||||
for(int i = 0; i < 64; i++)
|
||||
sharedIv[i] ^= xor_key[i];
|
||||
|
||||
Reference in New Issue
Block a user