/* * Rep4Secret.h * */ #ifndef GC_REP4SECRET_H_ #define GC_REP4SECRET_H_ #include "ShareSecret.h" #include "Protocols/Rep4MC.h" #include "Protocols/Rep4Share.h" namespace GC { class Rep4Prep; class Rep4Secret : public RepSecretBase { typedef RepSecretBase super; typedef Rep4Secret This; public: typedef Rep4Prep LivePrep; typedef Rep4 Protocol; typedef Rep4MC MC; typedef MC MAC_Check; typedef Rep4Input Input; static const bool expensive_triples = false; static const bool malicious = true; static MC* new_mc(typename super::mac_key_type) { return new MC; } static This constant(const typename super::clear& constant, int my_num, typename super::mac_key_type = {}, int = -1) { return Rep4Share::constant(constant, my_num); } Rep4Secret() { } template Rep4Secret(const T& other) : super(other) { } void load_clear(int n, const Integer& x); }; } #endif /* GC_REP4SECRET_H_ */