Skip to content

Commit

Permalink
Various improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Dec 11, 2020
1 parent 15d179a commit cdb8d6f
Show file tree
Hide file tree
Showing 235 changed files with 4,445 additions and 1,835 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Programs/Public-Input/*
*.d
local/
*.map
*.gch

# Packages #
############
Expand Down
8 changes: 4 additions & 4 deletions BMR/Register.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,11 @@ void EvalRegister::inputb(GC::Processor<GC::Secret<EvalRegister> >& processor,
}
for (auto& access : accesses)
access.prepare_masks(my_os);
party.P->Broadcast_Receive(oss, true);
party.P->unchecked_broadcast(oss);
my_os.reset_write_head();
for (auto& access : accesses)
access.received_masks(oss);
party.P->Broadcast_Receive(oss, true);
party.P->unchecked_broadcast(oss);
for (auto& access : accesses)
access.received_labels(oss);
}
Expand Down Expand Up @@ -622,7 +622,7 @@ void EvalRegister::other_input(EvalInputter& inputter, int from)

void EvalInputter::exchange()
{
party.P->Broadcast_Receive(oss, true);
party.P->unchecked_broadcast(oss);
for (auto& tuple : tuples)
{
if (tuple.from != party.P->my_num())
Expand All @@ -646,7 +646,7 @@ void EvalInputter::exchange()
#endif
}

party.P->Broadcast_Receive(oss, true);
party.P->unchecked_broadcast(oss);
}

void EvalRegister::finalize_input(EvalInputter& inputter, int, int)
Expand Down
2 changes: 1 addition & 1 deletion BMR/Register.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ void EvalRegister::load(vector<GC::ReadAccess<T> >& accesses,
}
}

party.P->Broadcast_Receive(keys, true);
party.P->unchecked_broadcast(keys);

int base = 0;
for (auto access : accesses)
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
The changelog explains changes pulled through from the private development repository. Bug fixes and small enhancements are committed between releases and not documented here.

## 0.2.1 (Dec 11, 2020)

- Virtual machines automatically use the modulus used during compilation
- Non-linear computation modulo a prime without large gap in bit length
- Fewer communication rounds in several protocols

## 0.2.0 (Oct 28, 2020)

- Rep4: honest-majority four-party computation with malicious security
Expand Down
4 changes: 2 additions & 2 deletions CONFIG
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ endif

# MAX_MOD_SZ (for FHE) must be least and GFP_MOD_SZ (for computation)
# must be exactly ceil(len(p)/len(word)) for the relevant prime p
# Default for GFP_MOD_SZ is 2, which is good for 128-bit p
# GFP_MOD_SZ only needs to be set for primes of bit length more that 256.
# Default for MAX_MOD_SZ is 10, which suffices for all Overdrive protocols
# MOD = -DMAX_MOD_SZ=10 -DGFP_MOD_SZ=2
# MOD = -DMAX_MOD_SZ=10 -DGFP_MOD_SZ=5

LDLIBS = -lmpirxx -lmpir -lsodium $(MY_LDLIBS)
LDLIBS += -lboost_system -lssl -lcrypto
Expand Down
2 changes: 1 addition & 1 deletion Compiler/GC/instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ class inputb(base.DoNotEliminateInstruction, base.VarArgsInstruction):

class inputbvec(base.DoNotEliminateInstruction, base.VarArgsInstruction,
base.Mergeable):
""" Copy private input to secret bit register bit by bit. The input is
""" Copy private input to secret bit registers bit by bit. The input is
read as floating-point number, multiplied by a power of two, rounded to an
integer, and then decomposed into bits.
Expand Down
Loading

0 comments on commit cdb8d6f

Please sign in to comment.