mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 05:57:57 -05:00
33 lines
498 B
C++
33 lines
498 B
C++
/*
|
|
* Semi.h
|
|
*
|
|
*/
|
|
|
|
#ifndef GC_SEMI_H_
|
|
#define GC_SEMI_H_
|
|
|
|
#include "Protocols/Beaver.h"
|
|
#include "SemiSecret.h"
|
|
|
|
namespace GC
|
|
{
|
|
|
|
class Semi : public Beaver<SemiSecret>
|
|
{
|
|
typedef Beaver<SemiSecret> super;
|
|
|
|
public:
|
|
Semi(Player& P) :
|
|
super(P)
|
|
{
|
|
}
|
|
|
|
void prepare_mult(const SemiSecret& x, const SemiSecret& y, int n,
|
|
bool repeat);
|
|
void prepare_mul(const SemiSecret& x, const SemiSecret& y, int n = -1);
|
|
};
|
|
|
|
} /* namespace GC */
|
|
|
|
#endif /* GC_SEMI_H_ */
|