mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-05-13 03:00:24 -04:00
47 lines
883 B
C++
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_ */
|