Skip to content

Commit

Permalink
Interactive mode in BMR machines.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Nov 7, 2022
1 parent 5812729 commit 9033656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion BMR/RealProgramParty.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ RealProgramParty<T>::RealProgramParty(int argc, const char** argv) :
online_opts = {opt, argc, argv, 1000};
else
online_opts = {opt, argc, argv};
assert(not online_opts.interactive);

online_opts.finalize(opt, argc, argv);
this->load(online_opts.progname);
Expand Down
6 changes: 4 additions & 2 deletions GC/ShareSecret.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ void Processor<T>::inputb(typename T::Input& input, ProcessorBase& input_process
{
InputArgList a(args);
complexity += a.n_input_bits();
bool interactive = a.n_interactive_inputs_from_me(my_num) > 0;
bool interactive = T::actual_inputs
&& a.n_interactive_inputs_from_me(my_num) > 0;
int dl = T::default_length;

for (auto x : a)
Expand Down Expand Up @@ -197,7 +198,8 @@ void Processor<T>::inputbvec(typename T::Input& input, ProcessorBase& input_proc
int my_num = P.my_num();
InputVecArgList a(args);
complexity += a.n_input_bits();
bool interactive = a.n_interactive_inputs_from_me(my_num) > 0;
bool interactive = T::actual_inputs
&& a.n_interactive_inputs_from_me(my_num) > 0;

for (auto x : a)
{
Expand Down

0 comments on commit 9033656

Please sign in to comment.