mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 14:08:09 -05:00
ECDSA, more replicated secret sharing.
This commit is contained in:
@@ -1,19 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
port=$[RANDOM+1024]
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
for i in 0 1 2; do
|
||||
IFS=""
|
||||
log="mal-rep-bin-$*-$i"
|
||||
IFS=" "
|
||||
$prefix ./malicious-rep-bin-party.x -p $i -pn $port $* 2>&1 |
|
||||
{
|
||||
if test $i = 0; then
|
||||
tee -a logs/$log
|
||||
else
|
||||
cat >> logs/$log
|
||||
fi
|
||||
} & true
|
||||
done
|
||||
export PLAYERS=3
|
||||
|
||||
wait || exit 1
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player malicious-rep-bin-party.x $* || exit 1
|
||||
|
||||
@@ -11,4 +11,4 @@ fi
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player malicious-shamir-party.x ${1:-test_all} $t || exit 1
|
||||
run_player malicious-shamir-party.x $* $t || exit 1
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
bits=${2:-128}
|
||||
g=${3:-0}
|
||||
mem=${4:-empty}
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player mascot-party.x ${1:-test_all} -lgp ${bits} -lg2 ${g} -m ${mem} || exit 1
|
||||
run_player mascot-party.x $* || exit 1
|
||||
|
||||
@@ -7,4 +7,4 @@ export PLAYERS=3
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player replicated-field-party.x ${1:-test_all} -lgp ${2:-128} || exit 1
|
||||
run_player replicated-field-party.x $* || exit 1
|
||||
|
||||
@@ -1,19 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
port=$[RANDOM+1024]
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
for i in 0 1 2; do
|
||||
IFS=""
|
||||
log="replicated-$*-$i"
|
||||
IFS=" "
|
||||
$prefix ./replicated-bin-party.x -p $i -pn $port $* 2>&1 |
|
||||
{
|
||||
if test $i = 0; then
|
||||
tee -a logs/$log
|
||||
else
|
||||
cat >> logs/$log
|
||||
fi
|
||||
} & true
|
||||
done
|
||||
export PLAYERS=3
|
||||
|
||||
wait || exit 1
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player replicated-bin-party.x $* || exit 1
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
bits=${2:-128}
|
||||
g=${3:-0}
|
||||
mem=${4:-empty}
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player Player-Online.x ${1:-test_all} -lgp ${bits} -lg2 ${g} -m ${mem} || exit 1
|
||||
run_player Player-Online.x $* || exit 1
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
HERE=$(cd `dirname $0`; pwd)
|
||||
SPDZROOT=$HERE/..
|
||||
|
||||
bits=${2:-128}
|
||||
g=${3:-0}
|
||||
mem=${4:-empty}
|
||||
|
||||
. $HERE/run-common.sh
|
||||
|
||||
run_player semi-party.x ${1:-test_all} -lgp ${bits} -lg2 ${g} -m ${mem} || exit 1
|
||||
run_player semi-party.x $* || exit 1
|
||||
|
||||
29
Scripts/test_ecdsa.sh
Executable file
29
Scripts/test_ecdsa.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'MOD = -DGFP_MOD_SZ=4' >> CONFIG.mine
|
||||
|
||||
make clean
|
||||
make -j4 ecdsa Fake-ECDSA.x
|
||||
|
||||
run()
|
||||
{
|
||||
port=$[RANDOM+1024]
|
||||
if ! {
|
||||
for j in $(seq 0 $2); do
|
||||
./$1-ecdsa-party.x -p $j 1 2>/dev/null & true
|
||||
done
|
||||
wait
|
||||
} | grep "Online checking"; then
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
for i in rep mal-rep shamir mal-shamir; do
|
||||
run $i 2
|
||||
done
|
||||
|
||||
./Fake-ECDSA.x
|
||||
|
||||
for i in semi mascot fake-spdz; do
|
||||
run $i 1
|
||||
done
|
||||
@@ -26,6 +26,6 @@ done
|
||||
|
||||
./compile.py -B 16 tutorial
|
||||
|
||||
for i in replicated yao rep-bmr mal-rep-bmr shamir-bmr mal-shamir-bmr; do
|
||||
for i in replicated mal-rep-bin yao rep-bmr mal-rep-bmr shamir-bmr mal-shamir-bmr; do
|
||||
test $i
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user