mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 14:08:09 -05:00
33 lines
687 B
C++
33 lines
687 B
C++
/*
|
|
* BrainPrep.h
|
|
*
|
|
*/
|
|
|
|
#ifndef PROTOCOLS_BRAINPREP_H_
|
|
#define PROTOCOLS_BRAINPREP_H_
|
|
|
|
#include "ReplicatedPrep.h"
|
|
#include "Protocols/BrainShare.h"
|
|
|
|
template<class T>
|
|
class BrainPrep : public MaliciousRingPrep<T>
|
|
{
|
|
typedef gfp_<2, (T::Z_BITS + 66) / 64> gfp2;
|
|
|
|
public:
|
|
static void basic_setup(Player&);
|
|
|
|
BrainPrep(SubProcessor<T>* proc, DataPositions& usage) :
|
|
BufferPrep<T>(usage), BitPrep<T>(proc, usage),
|
|
RingPrep<T>(proc, usage),
|
|
MaliciousDabitOnlyPrep<T>(proc, usage),
|
|
MaliciousRingPrep<T>(proc, usage)
|
|
{
|
|
}
|
|
|
|
void buffer_triples();
|
|
void buffer_inputs(int player);
|
|
};
|
|
|
|
#endif /* PROTOCOLS_BRAINPREP_H_ */
|