Merge pull request #75 from MyHush/denio
new padding size to prevent Metadata leakage, new xpm logo
This commit is contained in:
@@ -3,20 +3,34 @@
|
||||
|
||||
```
|
||||
# build dependencies
|
||||
sudo apt install clang g++ build-essential make mingw-w64 git pkg-config libc6-dev m4 g++-multilib autoconf libtool-bin ncurses-dev unzip python python-zmq zlib1g-dev wget curl bsdmainutils automake libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev autopoint libssl-dev
|
||||
sudo apt install -y clang g++ build-essential make mingw-w64 git pkg-config libc6-dev m4 g++-multilib autoconf libtool-bin ncurses-dev unzip python python-zmq zlib1g-dev wget curl bsdmainutils automake libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev autopoint libssl-dev
|
||||
|
||||
# MXE dependencies
|
||||
sudo apt install bash bison bzip2 flex gettext git gperf intltool libc6-dev-i386 libgdk-pixbuf2.0-dev libltdl-dev libtool-bin libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby sed unzip wget xz-utils
|
||||
sudo apt install -y bash bison bzip2 flex gettext git gperf intltool libc6-dev-i386 libgdk-pixbuf2.0-dev libltdl-dev libtool-bin libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby sed unzip wget xz-utils
|
||||
|
||||
```
|
||||
## more dependencies
|
||||
```
|
||||
|
||||
apt-get -y update && apt-get install -y \
|
||||
curl libdbus-1-3 libexpat1 \
|
||||
libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev libssl-dev \
|
||||
libfreetype6 libgl1-mesa-glx libglib2.0-0 \
|
||||
libx11-6 libx11-xcb1 \
|
||||
g++ build-essential cmake wget git clang++-6.0 \
|
||||
software-properties-common \
|
||||
autoconf automake autopoint bison flex gperf libtool libtool-bin intltool lzip python ruby unzip p7zip-full libgdk-pixbuf2.0-dev libltdl-dev
|
||||
```
|
||||
# Compile OpenSSL
|
||||
|
||||
```
|
||||
# Download openssl 1.0.2
|
||||
https://www.openssl.org/source/
|
||||
cd openssl
|
||||
./Configure linux-x86_64
|
||||
make
|
||||
# Download openssl 1.0.2 from https://openssl.org/source/
|
||||
|
||||
wget https://www.openssl.org/source/openssl-1.0.2t.tar.gz
|
||||
tar zxvpf openssl-1.0.2t.tar.gz
|
||||
cd openssl-1.0.2t
|
||||
./config # linux-x86_64
|
||||
make -j$(nproc)
|
||||
```
|
||||
## Static build of Qt5
|
||||
|
||||
@@ -25,7 +39,7 @@ make
|
||||
mkdir -p ~/Qt/5.11.2 && cd ~/Qt/5.11.2
|
||||
|
||||
wget https://download.qt.io/archive/qt/5.11/5.11.2/single/qt-everywhere-src-5.11.2.tar.xz
|
||||
tar xvf qt-everywhere-src-5.11.2.tar.xz && cd qt-everywhere-src-5.11.2
|
||||
tar xvpf qt-everywhere-src-5.11.2.tar.xz && cd qt-everywhere-src-5.11.2
|
||||
|
||||
```
|
||||
# Configure and build Qt5 statically.
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
# SilentDragonLite
|
||||
# SilentDragonLite
|
||||
|
||||
SilentDragonLite is a lightwallet for HUSH ($HUSH) runs on Linux and Windows which does not require you to download the full blockchain. This is experimental software under active development!
|
||||
|
||||
[](https://postimg.cc/fSVf880D)
|
||||
|
||||
[](https://postimg.cc/mcZMdm0J)
|
||||
|
||||
[](https://postimg.cc/KkThwDSd)
|
||||
[](https://postimg.cc/21Y0B1vR)
|
||||
|
||||
## PRIVACY NOTICE
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,10 @@ DEFINES += \
|
||||
INCLUDEPATH += src/3rdparty/
|
||||
INCLUDEPATH += src/
|
||||
|
||||
mac: LIBS+= -Wl,-dead_strip
|
||||
mac: LIBS+= -Wl,-dead_strip_dylibs
|
||||
mac: LIBS+= -Wl,-bind_at_load
|
||||
|
||||
RESOURCES = application.qrc
|
||||
|
||||
MOC_DIR = bin
|
||||
|
||||
@@ -432,9 +432,12 @@ void AppDataServer::saveNonceHex(NonceType nt, QString noncehex) {
|
||||
|
||||
// Encrypt an outgoing message with the stored secret key.
|
||||
QString AppDataServer::encryptOutgoing(QString msg) {
|
||||
if (msg.length() % 256 > 0) {
|
||||
msg = msg + QString(" ").repeated(256 - (msg.length() % 256));
|
||||
int padding = 16*1024;
|
||||
qDebug() << "Encrypt msg(pad="<<padding<<") prepad len=" << msg.length();
|
||||
if (msg.length() % padding > 0) {
|
||||
msg = msg + QString(" ").repeated(padding - (msg.length() % padding));
|
||||
}
|
||||
qDebug() << "Encrypt msg postpad len=" << msg.length();
|
||||
|
||||
QString localNonceHex = getNonceHex(NonceType::LOCAL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user