diff options
Diffstat (limited to 'protocols/WhatsAppWeb')
-rw-r--r-- | protocols/WhatsAppWeb/WhatsAppWeb.vcxproj | 5 | ||||
-rw-r--r-- | protocols/WhatsAppWeb/src/noise.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsAppWeb/src/stdafx.h | 1 |
3 files changed, 2 insertions, 6 deletions
diff --git a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj index bc032bfdcc..a3c27bbfc6 100644 --- a/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj +++ b/protocols/WhatsAppWeb/WhatsAppWeb.vcxproj @@ -25,9 +25,6 @@ <ProjectReference Include="..\..\libs\libsignal\libsignal.vcxproj"> <Project>{620e0be7-3763-4f35-9dbd-4770104e269c}</Project> </ProjectReference> - <ProjectReference Include="..\..\libs\libsodium\libsodium.vcxproj"> - <Project>{a185b162-6cb6-4502-b03f-b56f7699a8d9}</Project> - </ProjectReference> <ProjectReference Include="..\..\libs\zlib\zlib.vcxproj"> <Project>{e2a369cd-eda3-414f-8ad0-e732cd7ee68c}</Project> </ProjectReference> @@ -37,7 +34,7 @@ </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{13E796AD-BEA4-4213-A1B8-E18E2397E544}</ProjectGuid> - <ProjectName>WhatsAppWeb</ProjectName> + <ProjectName>WhatsApp</ProjectName> </PropertyGroup> <PropertyGroup Label="Vcpkg" Condition="'$(Platform)'=='Win32'"> <VcpkgUseStatic>false</VcpkgUseStatic> diff --git a/protocols/WhatsAppWeb/src/noise.cpp b/protocols/WhatsAppWeb/src/noise.cpp index 446689bea7..190e5740f6 100644 --- a/protocols/WhatsAppWeb/src/noise.cpp +++ b/protocols/WhatsAppWeb/src/noise.cpp @@ -90,7 +90,7 @@ void WANoise::deriveKey(const void *pData, size_t cbLen, MBinBuffer &write, MBin void WANoise::mixIntoKey(const void *n, const void *p) { uint8_t tmp[32]; - crypto_scalarmult((unsigned char *)tmp, (const unsigned char *)n, (const unsigned char *)p); + curve25519_donna((unsigned char *)tmp, (const unsigned char *)n, (const unsigned char *)p); deriveKey(tmp, sizeof(tmp), salt, encKey); decKey.assign(encKey.data(), encKey.length()); diff --git a/protocols/WhatsAppWeb/src/stdafx.h b/protocols/WhatsAppWeb/src/stdafx.h index 52a3148edd..98fea4f388 100644 --- a/protocols/WhatsAppWeb/src/stdafx.h +++ b/protocols/WhatsAppWeb/src/stdafx.h @@ -53,7 +53,6 @@ Copyright © 2019-22 George Hazan #include <openssl/kdf.h> #include "../../libs/libqrencode/src/qrencode.h" -#include "../../libs/libsodium/src/include/sodium.h" #include "../../libs/zlib/src/zlib.h" #include "../../utils/mir_signal.h" |