Files
MP-SPDZ/Protocols/RepRingOnlyEdabitPrep.h
Marcel Keller 32950fe8d4 Maintenance.
2021-11-04 16:24:34 +11:00

34 lines
755 B
C++

/*
* RepRingOnlyEdabitPrep.h
*
*/
#ifndef PROTOCOLS_REPRINGONLYEDABITPREP_H_
#define PROTOCOLS_REPRINGONLYEDABITPREP_H_
#include "ReplicatedPrep.h"
/**
* edaBit generation for replicated secret sharing modulo a power of two
*/
template<class T>
class RepRingOnlyEdabitPrep : public virtual BufferPrep<T>
{
protected:
void buffer_edabits(int n_bits, ThreadQueues*);
public:
static void edabit_sacrifice_buckets(vector<edabit<T>>&, size_t, bool, int,
SubProcessor<T>&, int, int, const void* = 0)
{
throw runtime_error("no need for sacrifice");
}
RepRingOnlyEdabitPrep(SubProcessor<T>*, DataPositions& usage) :
BufferPrep<T>(usage)
{
}
};
#endif /* PROTOCOLS_REPRINGONLYEDABITPREP_H_ */