mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-05-13 03:00:24 -04:00
29 lines
628 B
C++
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_ */
|