Files
MP-SPDZ/Protocols/CowGearShare.h
Marcel Keller 6a424539c9 SoftSpokenOT.
2022-08-25 13:23:18 +10:00

47 lines
883 B
C++

/*
* CowGearShare.h
*
*/
#ifndef PROTOCOLS_COWGEARSHARE_H_
#define PROTOCOLS_COWGEARSHARE_H_
#include "Share.h"
template<class T> class CowGearPrep;
template<class T>
class CowGearShare : public Share<T>
{
typedef CowGearShare This;
typedef Share<T> super;
public:
typedef MAC_Check_<This> MAC_Check;
typedef Direct_MAC_Check<This> Direct_MC;
typedef ::Input<This> Input;
typedef ::PrivateOutput<This> PrivateOutput;
typedef SPDZ<This> Protocol;
typedef CowGearPrep<This> LivePrep;
typedef Share<typename T::FD::T> prep_check_type;
const static bool needs_ot = false;
const static true_type covert;
CowGearShare()
{
}
template<class U>
CowGearShare(const U& other) :
super(other)
{
}
};
template<class T>
const true_type CowGearShare<T>::covert;
#endif /* PROTOCOLS_COWGEARSHARE_H_ */