Files
MP-SPDZ/Protocols/SemiPrep.h
Marcel Keller 2813c0ef0f Maintenance.
2023-08-14 18:29:46 +10:00

34 lines
611 B
C++

/*
* SemiPrep.h
*
*/
#ifndef PROTOCOLS_SEMIPREP_H_
#define PROTOCOLS_SEMIPREP_H_
#include "MascotPrep.h"
template<class T> class HemiPrep;
/**
* Semi-honest triple generation based on oblivious transfer
*/
template<class T>
class SemiPrep : public virtual OTPrep<T>, public virtual SemiHonestRingPrep<T>
{
friend class HemiPrep<T>;
public:
SemiPrep(SubProcessor<T>* proc, DataPositions& usage);
void buffer_triples();
void buffer_dabits(ThreadQueues* queues);
void get_one_no_count(Dtype dtype, T& a);
static bool bits_from_dabits();
};
#endif /* PROTOCOLS_SEMIPREP_H_ */