diff --git a/src/protocol/CryptionHandler.cpp b/src/protocol/CryptionHandler.cpp index 9a985d9..f0351d2 100644 --- a/src/protocol/CryptionHandler.cpp +++ b/src/protocol/CryptionHandler.cpp @@ -108,7 +108,7 @@ void _fe_neg(fe h, const fe f) { h[9] = h9; } -inline void keyMul(uint8_t* target_buffer, const uint8_t* publicKey /* compressed */, const uint8_t* privateKey /* uncompressed */, bool negate){ +inline void keyMul(uint8_t(& target_buffer)[32], const uint8_t* publicKey /* compressed */, const uint8_t* privateKey /* uncompressed */, bool negate){ ge_p3 keyA{}; ge_p2 result{}; @@ -122,6 +122,7 @@ inline void keyMul(uint8_t* target_buffer, const uint8_t* publicKey /* compresse ge_tobytes(target_buffer, &result); } + bool CryptionHandler::setupSharedSecretNew(const std::string &alpha, const std::string &beta, const char* privateKey /* uncompressed */, const char* publicKey /* compressed */) { if(alpha.length() != 10 || beta.length() != 54) return false;