/* * Rep4Input.h * */ #ifndef PROTOCOLS_REP4INPUT_H_ #define PROTOCOLS_REP4INPUT_H_ #include "ReplicatedInput.h" template class Rep4Input : public InputBase { Rep4 protocol; Player& P; octetStream to_send; array to_receive; array, 4> results; array hashes; public: Rep4Input(SubProcessor& proc, MAC_Check_Base&); Rep4Input(MAC_Check_Base&, Preprocessing&, Player& P); ~Rep4Input(); void reset(int player); void add_mine(const typename T::open_type& input, int n_bits = -1); void add_other(int player, int n_bits = -1); void exchange(); T finalize_mine(); void finalize_other(int player, T& target, octetStream& o, int n_bits = -1); void check(); }; #endif /* PROTOCOLS_REP4INPUT_H_ */