Maintenance.

This commit is contained in:
Marcel Keller
2022-01-11 16:04:59 +11:00
parent cdb0c0f898
commit e07d9bf2a3
216 changed files with 2410 additions and 1117 deletions

View File

@@ -24,12 +24,15 @@ SemiPrep::SemiPrep(DataPositions& usage, bool) :
void SemiPrep::set_protocol(Beaver<SemiSecret>& protocol)
{
if (triple_generator)
{
assert(&triple_generator->get_player() == &protocol.P);
return;
}
(void) protocol;
params.set_passive();
triple_generator = new SemiSecret::TripleGenerator(
BaseMachine::s().fresh_ot_setup(),
BaseMachine::fresh_ot_setup(protocol.P),
protocol.P.N, -1, OnlineOptions::singleton.batch_size,
1, params, {}, &protocol.P);
triple_generator->multi_threaded = false;
@@ -61,12 +64,4 @@ void SemiPrep::buffer_bits()
}
}
NamedCommStats SemiPrep::comm_stats()
{
if (triple_generator)
return triple_generator->comm_stats();
else
return {};
}
} /* namespace GC */