Files
MP-SPDZ/GC/Semi.h
Marcel Keller 78fe3d8bad Maintenance.
2024-07-09 12:19:52 +10:00

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_ */