mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Maintenance.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user