diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-19 22:28:22 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-19 22:28:22 +0300 |
commit | a6a0505831e4d3f91698ad995cd2ead8b47a2f2c (patch) | |
tree | d8c0a4f6a07da16144fc0c65eed62e6c9357e756 /protocols/WhatsAppWeb/src | |
parent | ab99d7c226e1482c9a09771961ccabc9a60fb2cc (diff) |
WhatsApp untied from libsodium
Diffstat (limited to 'protocols/WhatsAppWeb/src')
-rw-r--r-- | protocols/WhatsAppWeb/src/noise.cpp | 2 | ||||
-rw-r--r-- | protocols/WhatsAppWeb/src/stdafx.h | 1 |
2 files changed, 1 insertions, 2 deletions
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" |