forked from data61/MP-SPDZ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CcdSecret.h
72 lines (56 loc) · 1.24 KB
/
CcdSecret.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* CcdSecret.h
*
*/
#ifndef GC_CCDSECRET_H_
#define GC_CCDSECRET_H_
#include "TinySecret.h"
#include "CcdShare.h"
namespace GC
{
template<class T> class TinyMC;
template<class T> class VectorProtocol;
template<class T> class VectorInput;
template<class T> class CcdPrep;
template<class T>
class CcdSecret : public VectorSecret<CcdShare<T>>
{
typedef CcdSecret This;
typedef VectorSecret<CcdShare<T>> super;
public:
typedef TinyMC<This> MC;
typedef MC MAC_Check;
typedef VectorProtocol<This> Protocol;
typedef CcdPrep<This> LivePrep;
typedef VectorInput<This> Input;
typedef typename This::part_type check_type;
static string type_short()
{
return "CCD";
}
static MC* new_mc(typename super::mac_key_type mac_key)
{
return new MC(mac_key);
}
CcdSecret()
{
}
CcdSecret(const typename This::part_type& other) :
super(other)
{
}
CcdSecret(const typename super::super& other) :
super(other)
{
}
CcdSecret(const typename This::part_type::super& other) :
super(other)
{
}
CcdSecret(const GC::Clear& other) :
super(other)
{
}
};
} /* namespace GC */
#endif /* GC_CCDSECRET_H_ */