/* * SquarePrep.h * */ #ifndef PROTOCOLS_SQUAREPREP_H_ #define PROTOCOLS_SQUAREPREP_H_ #include "ReplicatedPrep.h" template void generate_squares(vector>& squares, int n_squares, U* protocol); template class SquarePrep : public BufferPrep { void buffer_triples() { throw runtime_error("no triples here"); } void buffer_squares() { generate_squares(this->squares, this->buffer_size, &this->proc->protocol); } public: SquarePrep(DataPositions& usage) : BufferPrep(usage) { } void set_protocol(typename T::Protocol&) { } }; #endif /* PROTOCOLS_SQUAREPREP_H_ */