mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Python 3, semi-honest computation using semi-homomorphic encryption.
This commit is contained in:
8
Scripts/hemi.sh
Executable file
8
Scripts/hemi.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player hemi-party.x $* || exit 1
|
||||
@@ -9,6 +9,20 @@ gdb_screen()
|
||||
screen -S :$name -d -m bash -l -c "echo $*; echo $LIBRARY_PATH; gdb $prog -ex \"run $*\""
|
||||
}
|
||||
|
||||
lldb_screen()
|
||||
{
|
||||
prog=$1
|
||||
shift
|
||||
IFS=
|
||||
name=${*/-/}
|
||||
IFS=' '
|
||||
echo debug $prog with arguments $*
|
||||
echo name: $name
|
||||
tmp=/tmp/$RANDOM
|
||||
echo run > $tmp
|
||||
screen -S :$i -d -m bash -l -c "lldb -s $tmp $prog -- $*"
|
||||
}
|
||||
|
||||
run_player() {
|
||||
port=$((RANDOM%10000+10000))
|
||||
bin=$1
|
||||
@@ -42,6 +56,7 @@ run_player() {
|
||||
{ if test $i = 0; then tee $log; else cat > $log; fi; } &
|
||||
done
|
||||
last_player=$(($players - 1))
|
||||
i=$last_player
|
||||
>&2 echo Running $prefix $SPDZROOT/$bin $last_player $params
|
||||
$prefix $SPDZROOT/$bin $last_player $params > $SPDZROOT/logs/$log_prefix$last_player 2>&1 || return 1
|
||||
}
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'MOD = -DGFP_MOD_SZ=4' >> CONFIG.mine
|
||||
|
||||
make clean
|
||||
make -j4 ecdsa Fake-ECDSA.x
|
||||
|
||||
run()
|
||||
|
||||
@@ -12,18 +12,18 @@ function test
|
||||
fi
|
||||
}
|
||||
|
||||
./compile.py tutorial
|
||||
|
||||
for i in rep-field mal-rep-field ps-rep-field shamir mal-shamir cowgear semi mascot; do
|
||||
test $i
|
||||
done
|
||||
|
||||
./compile.py -R 64 tutorial
|
||||
|
||||
for i in ring brain mal-rep-ring ps-rep-ring semi2k spdz2k; do
|
||||
test $i
|
||||
done
|
||||
|
||||
./compile.py tutorial
|
||||
|
||||
for i in rep-field mal-rep-field ps-rep-field shamir mal-shamir hemi cowgear semi mascot; do
|
||||
test $i
|
||||
done
|
||||
|
||||
./compile.py -B 16 tutorial
|
||||
|
||||
for i in replicated mal-rep-bin semi-bin yao tiny rep-bmr mal-rep-bmr shamir-bmr mal-shamir-bmr; do
|
||||
|
||||
Reference in New Issue
Block a user