Mixed computation, binary computation with XOR-based MACs.

This commit is contained in:
Marcel Keller
2019-12-23 18:42:12 +01:00
parent 12773c4d24
commit 6fa65c3141
171 changed files with 2872 additions and 1115 deletions

View File

@@ -1,31 +1,70 @@
#!/bin/bash
while getopts XC opt; do
case $opt in
X) compile_opts=-X
dabit=1
;;
C) cheap=1
;;
esac
done
shift $[OPTIND-1]
for i in 0 1; do
seq 0 3 > Player-Data/Input-P$i-0
done
function test
function test_vm
{
ulimit -c unlimited
if ! Scripts/$1.sh tutorial | grep 'weighted average: 2.333'; then
Scripts/$1.sh tutorial
exit 1
fi
}
./compile.py -R 64 tutorial
for dabit in ${dabit:-0 1}; do
if [[ $dabit = 1 ]]; then
compile_opts="$compile_opts -X"
fi
for i in ring brain mal-rep-ring ps-rep-ring semi2k spdz2k; do
test $i
./compile.py -R 64 $compile_opts tutorial
for i in ring brain mal-rep-ring ps-rep-ring semi2k; do
test_vm $i
done
if ! test "$dabit" = 1 -a "$cheap" = 1; then
test_vm spdz2k
fi
./compile.py $compile_opts tutorial
for i in rep-field mal-rep-field ps-rep-field; do
test_vm $i
done
if [[ ! "$dabit" = 1 ]]; then
for i in shamir mal-shamir; do
test_vm $i
done
fi
for i in hemi semi; do
test_vm $i
done
if ! test "$dabit" = 1 -a "$cheap" = 1; then
for i in cowgear mascot; do
test_vm $i
done
fi
done
./compile.py tutorial
./compile.py -B 16 $compile_opts 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
test $i
for i in replicated mal-rep-bin semi-bin yao tinier tiny rep-bmr mal-rep-bmr shamir-bmr mal-shamir-bmr; do
test_vm $i
done

8
Scripts/tinier.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
HERE=$(cd `dirname $0`; pwd)
SPDZROOT=$HERE/..
. $HERE/run-common.sh
run_player tinier-party.x $* || exit 1