forked from data61/MP-SPDZ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rep4Secret.h
52 lines (40 loc) · 1.02 KB
/
Rep4Secret.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Rep4Secret.h
*
*/
#ifndef GC_REP4SECRET_H_
#define GC_REP4SECRET_H_
#include "ShareSecret.h"
#include "Protocols/Rep4MC.h"
#include "Protocols/Rep4Share.h"
namespace GC
{
class Rep4Secret : public RepSecretBase<Rep4Secret, 3>
{
typedef RepSecretBase<Rep4Secret, 3> super;
typedef Rep4Secret This;
public:
typedef DummyLivePrep<This> LivePrep;
typedef Rep4<This> Protocol;
typedef Rep4MC<This> MC;
typedef MC MAC_Check;
typedef Rep4Input<This> Input;
static const bool expensive_triples = false;
static MC* new_mc(typename super::mac_key_type) { return new MC; }
static This constant(const typename super::clear& constant, int my_num,
typename super::mac_key_type = {}, int = -1)
{
return Rep4Share<typename super::clear>::constant(constant, my_num);
}
Rep4Secret()
{
}
template <class T>
Rep4Secret(const T& other) :
super(other)
{
}
void load_clear(int n, const Integer& x);
};
}
#endif /* GC_REP4SECRET_H_ */