Skip to content

Commit

Permalink
Fix performance bug in client communication with Shamir-based protocols.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Feb 15, 2023
1 parent 389824f commit 7266f3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Processor/Processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ void Processor<sint, sgf2n>::write_socket(const RegType reg_type,
socket_stream.store(message_type);
}

auto rec_factor = sint::get_rec_factor(P.my_num(), P.num_players());

for (int j = 0; j < size; j++)
{
for (int i = 0; i < m; i++)
Expand All @@ -256,8 +258,7 @@ void Processor<sint, sgf2n>::write_socket(const RegType reg_type,
if (send_macs)
get_Sp_ref(registers[i] + j).pack(socket_stream);
else
get_Sp_ref(registers[i] + j).pack(socket_stream,
sint::get_rec_factor(P.my_num(), P.num_players()));
get_Sp_ref(registers[i] + j).pack(socket_stream, rec_factor);
}
else if (reg_type == CINT)
{
Expand Down

0 comments on commit 7266f3b

Please sign in to comment.