-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
64 lines (53 loc) · 2.15 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
# docker run -it -v "$(pwd)"/release2/:/release --name coherence_rd ubuntu:latest /bin/bash
# apt-get update
# apt-get install -y libssl-dev argon2 libargon2-dev
# cp libs & bin
# docker rmi liesware/coherence:rd
# docker commit coherence_rd liesware/coherence:rd
# docker login
# docker push liesware/coherence:rds
apt-get update
DEBIAN_FRONTEND="noninteractive" apt-get install -y autoconf automake gcc g++ make libtool git wget unzip xsltproc libssl-dev bzip2 valgrind doxygen graphviz python3 python3-pip cmake libcurl4-openssl-dev cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz git wget libargon2-dev pkg-config meson astyle python3-yaml
git clone -b master https://github.com/liesware/coherence
cd coherence/core/lib/
git clone https://github.com/P-H-C/phc-winner-argon2
mv phc-winner-argon2/ argon2
cd argon2
make
cd ..
mkdir cryptopp
cd cryptopp
wget https://github.com/weidai11/cryptopp/releases/download/CRYPTOPP_8_9_0/cryptopp890.zip
unzip cryptopp890.zip
make libcryptopp.a libcryptopp.so
cd ..
git clone https://github.com/Tencent/rapidjson.git
# git clone -b main https://github.com/open-quantum-safe/liboqs.git
wget https://github.com/open-quantum-safe/liboqs/archive/refs/tags/0.10.1.zip
unzip 0.10.1.zip
mv liboqs-0.10.1 liboqs
mv liboqs-0.10.1.zip liboqs
cd liboqs
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON -GNinja ..
ninja
cd ../../
git clone https://github.com/open-quantum-safe/liboqs-cpp
sed -i '40 i std::string LIBOQS_CPP_VERSION="0.10.1";' liboqs-cpp/include/common.hpp
git clone https://github.com/pistacheio/pistache.git
cd pistache
meson setup build
meson compile -C build
cd ../../
mkdir bin
make
cp lib/pistache/build/src/libpistache.so.0.3.1 /lib/x86_64-linux-gnu/libpistache.so.0
cp lib/cryptopp/libcryptopp.so.8.9.0 /lib/x86_64-linux-gnu/libcryptopp.so.8
cp lib/liboqs/build/lib/liboqs.so.0.10.1 /lib/x86_64-linux-gnu/liboqs.so.5
ls -lha /lib/x86_64-linux-gnu/libpistache.so.0
ls -lha /lib/x86_64-linux-gnu/libcryptopp.so.8
ls -lha /lib/x86_64-linux-gnu/liboqs.so.5
ls -lha /lib/x86_64-linux-gnu/libargon2.so.1
ls -lha /lib/x86_64-linux-gnu/libpistache.so.0
ldd bin/coherence