mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-05-13 03:00:24 -04:00
55 lines
918 B
C++
55 lines
918 B
C++
/*
|
|
* AtlasShare.h
|
|
*
|
|
*/
|
|
|
|
#ifndef PROTOCOLS_ATLASSHARE_H_
|
|
#define PROTOCOLS_ATLASSHARE_H_
|
|
|
|
#include "ShamirShare.h"
|
|
|
|
template<class T> class Atlas;
|
|
template<class T> class AtlasPrep;
|
|
|
|
namespace GC
|
|
{
|
|
class AtlasSecret;
|
|
}
|
|
|
|
template<class T>
|
|
class AtlasShare : public ShamirShare<T>
|
|
{
|
|
typedef AtlasShare This;
|
|
typedef ShamirShare<T> super;
|
|
|
|
public:
|
|
typedef Atlas<This> Protocol;
|
|
typedef ::Input<This> Input;
|
|
typedef IndirectShamirMC<This> MAC_Check;
|
|
typedef ShamirMC<This> Direct_MC;
|
|
typedef ::PrivateOutput<This> PrivateOutput;
|
|
typedef AtlasPrep<This> LivePrep;
|
|
typedef LivePrep TriplePrep;
|
|
|
|
#ifndef NO_MIXED_CIRCUITS
|
|
typedef GC::AtlasSecret bit_type;
|
|
#endif
|
|
|
|
static string alt()
|
|
{
|
|
return "";
|
|
}
|
|
|
|
AtlasShare()
|
|
{
|
|
}
|
|
|
|
template<class U>
|
|
AtlasShare(const U& other) :
|
|
super(other)
|
|
{
|
|
}
|
|
};
|
|
|
|
#endif /* PROTOCOLS_ATLASSHARE_H_ */
|