-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to MP-SPDZ 0.0.8; focus in computation modulo a 128-bit prime.
- Loading branch information
Showing
5 changed files
with
54 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
#!/bin/bash | ||
|
||
# Compile SPDZ with secure pre-processing | ||
git clone https://github.com/n1analytics/MP-SPDZ | ||
cd MP-SPDZ | ||
git checkout -b MPCSOK 4092d61 | ||
echo USE_NTL = 1 >> CONFIG.mine | ||
echo USE_GF2N_LONG = 0 >> CONFIG.mine | ||
echo MOD = -DMAX_MOD_SZ=6 >> CONFIG.mine | ||
echo ARCH = -march=native >> CONFIG.mine | ||
|
||
make mpir || exit 1 | ||
make || exit 1 | ||
mkdir Player-Data | ||
Scripts/setup-ssl.sh | ||
curl -L https://github.com/n1analytics/MP-SPDZ/releases/download/v0.0.8/mp-spdz-0.0.8.tar.gz | tar xzv | ||
mv mp-spdz-0.0.8 MP-SPDZ | ||
|
||
# Linking | ||
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib | ||
ldconfig | ||
cd MP-SPDZ | ||
Scripts/tldr.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
a = sint.get_input_from(0) | ||
b = sint.get_input_from(1) | ||
c = sint.get_input_from(0) | ||
c = sint.get_input_from(2) | ||
|
||
prod = a * b * c | ||
print_ln('Mult3 prod = %s', prod.reveal()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters