Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
APSIA
UUHD-PPLS
Commits
25c04ff3
Commit
25c04ff3
authored
Mar 16, 2021
by
Aditya Damodaran
Browse files
Fixed install scripts
parent
705c34b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
doc/install_bionic.md
View file @
25c04ff3
...
...
@@ -17,8 +17,8 @@ You could alternatively use our `install_ubuntu.sh` script located in the root d
1.
Start by installing all prerequisites for building charm:
```
$ apt-get update
$ apt-get install -y openssl gcc python3.6 python3-pip flex bison byacc git cmake libssl-dev
$
sudo
apt-get update
$
sudo
apt-get install -y openssl gcc python3.6 python3-pip flex bison byacc git cmake libssl-dev
```
2.
Clone our repository:
...
...
@@ -38,18 +38,18 @@ You could alternatively use our `install_ubuntu.sh` script located in the root d
$ tar -xvf pbc-0.5.14.tar.gz
```
4.
Build and install GMP and PBC:
4.
Build and install GMP and PBC
(Warning: This will install GMP and PBC as root)
:
```
$ cd gmp-6.2.1
$ ./configure
$ make
$ make install
$
sudo
make install
$ cd ..
$ cd pbc-0.5.14
$ ./configure
$ make
$ make install
$
sudo
make install
$ cd ..
```
...
...
@@ -60,17 +60,17 @@ You could alternatively use our `install_ubuntu.sh` script located in the root d
$ wget https://github.com/relic-toolkit/relic/archive/relic-toolkit-0.5.0.tar.gz
$ tar -xvf relic-toolkit-0.5.0.tar.gz
$ mkdir relic-target && cd relic-target
$ ../buildRELIC.sh ../relic-relic-toolkit-0.5.0/
$ cd ../../../../../
$
sudo
../buildRELIC.sh ../relic-relic-toolkit-0.5.0/
$ cd ../../../../../
../
```
6.
Build and install Charm-Crypto:
6.
Build and install Charm-Crypto
(Warning: This will install Charm-Crypto as root)
:
```
$ ./configure.sh --enable-pairing-relic
$ make
$ make install
$ ldconfig -v
$
sudo
make install
$
sudo
ldconfig -v
$ cd ../../
```
...
...
install_ubuntu.sh
View file @
25c04ff3
...
...
@@ -2,8 +2,8 @@
# SPDX-FileCopyrightText: 2021 University of Luxembourg
# SPDX-License-Identifier: CC0-1.0
# SPDXVersion: SPDX-2.2
apt-get update
apt-get
install
-y
openssl gcc python3.6 python3-pip flex bison byacc git cmake libssl-dev
sudo
apt-get update
sudo
apt-get
install
-y
openssl gcc python3.6 python3-pip flex bison byacc git cmake libssl-dev
mkdir
requirements
&&
cd
requirements
wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz
wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz
...
...
@@ -13,23 +13,23 @@ tar -xvf pbc-0.5.14.tar.gz
cd
gmp-6.2.1
./configure
make
make
install
sudo
make
install
cd
..
cd
pbc-0.5.14
./configure
make
make
install
sudo
make
install
cd
..
cd
charm/charm/core/math/pairing/relic
wget https://github.com/relic-toolkit/relic/archive/relic-toolkit-0.5.0.tar.gz
tar
-xvf
relic-toolkit-0.5.0.tar.gz
mkdir
relic-target
&&
cd
relic-target
../buildRELIC.sh ../relic-relic-toolkit-0.5.0/
cd
../../../../../
sudo
../buildRELIC.sh ../relic-relic-toolkit-0.5.0/
cd
../../../../../
../
./configure.sh
--enable-pairing-relic
make
make
install
ldconfig
-v
sudo
make
install
sudo
ldconfig
-v
cd
../../
python3.6
-m
pip
install
-r
requirements.txt
python3.6 ./protocol.py
-h
\ No newline at end of file
protocol.py
View file @
25c04ff3
...
...
@@ -72,6 +72,8 @@ if args.keylength == 1024 or args.keylength == 2048:
keylength
=
args
.
keylength
if
args
.
size
!=
None
and
int
(
args
.
size
)
>
10
and
int
(
args
.
size
)
<
800000
:
db_size
=
int
(
args
.
size
)
else
:
print
(
"Please enter a database size between 11 and 800000 (We need a database containing atleast 10 entries to test the profiling phase)."
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment