/* * BrainPrep.h * */ #ifndef PROTOCOLS_BRAINPREP_H_ #define PROTOCOLS_BRAINPREP_H_ #include "ReplicatedPrep.h" #include "Protocols/BrainShare.h" template class BrainPrep : public MaliciousRingPrep { typedef gfp_<2, (T::Z_BITS + 66) / 64> gfp2; public: static void basic_setup(Player&); BrainPrep(SubProcessor* proc, DataPositions& usage) : BufferPrep(usage), BitPrep(proc, usage), RingPrep(proc, usage), MaliciousDabitOnlyPrep(proc, usage), MaliciousRingPrep(proc, usage) { } void buffer_triples(); void buffer_inputs(int player); }; #endif /* PROTOCOLS_BRAINPREP_H_ */