mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-05-13 03:00:24 -04:00
51 lines
978 B
C++
51 lines
978 B
C++
/*
|
|
* TemiShare.h
|
|
*
|
|
*/
|
|
|
|
#ifndef PROTOCOLS_TEMISHARE_H_
|
|
#define PROTOCOLS_TEMISHARE_H_
|
|
|
|
#include "HemiShare.h"
|
|
|
|
template<class T> class TemiPrep;
|
|
template<class T> class Hemi;
|
|
|
|
template<class T>
|
|
class TemiShare : public HemiShare<T>
|
|
{
|
|
typedef TemiShare This;
|
|
typedef HemiShare<T> super;
|
|
|
|
public:
|
|
typedef SemiMC<This> MAC_Check;
|
|
typedef DirectSemiMC<This> Direct_MC;
|
|
typedef SemiInput<This> Input;
|
|
typedef ::PrivateOutput<This> PrivateOutput;
|
|
typedef typename conditional<T::prime_field, Hemi<This>, Beaver<This>>::type Protocol;
|
|
typedef TemiPrep<This> LivePrep;
|
|
|
|
typedef HemiMatrixPrep<This> MatrixPrep;
|
|
typedef Semi<This> BasicProtocol;
|
|
|
|
static const bool needs_ot = false;
|
|
static const bool local_mul = false;
|
|
|
|
static string alt()
|
|
{
|
|
return "";
|
|
}
|
|
|
|
TemiShare()
|
|
{
|
|
}
|
|
template<class U>
|
|
TemiShare(const U& other) :
|
|
super(other)
|
|
{
|
|
}
|
|
|
|
};
|
|
|
|
#endif /* PROTOCOLS_TEMISHARE_H_ */
|