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

29 lines
628 B
C++

/*
* RingOnlyPrep.h
*
*/
#ifndef PROTOCOLS_RINGONLYPREP_H_
#define PROTOCOLS_RINGONLYPREP_H_
#include "ReplicatedPrep.h"
/**
* Semi-honest daBit generation for computation modulo a power of two
*/
template<class T>
class RingOnlyPrep : public virtual RingPrep<T>
{
protected:
RingOnlyPrep<T>(SubProcessor<T>* proc, DataPositions& usage) :
BufferPrep<T>(usage), BitPrep<T>(proc, usage),
RingPrep<T>(proc, usage)
{
}
void buffer_dabits_from_bits_without_check(vector<dabit<T>>& dabits,
int buffer_size, ThreadQueues* queues);
};
#endif /* PROTOCOLS_RINGONLYPREP_H_ */