forked from bristolcrypto/SPDZ-2
-
Notifications
You must be signed in to change notification settings - Fork 272
/
TinierSharePrep.h
51 lines (37 loc) · 1.1 KB
/
TinierSharePrep.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
/*
* TinierSharePrep.h
*
*/
#ifndef GC_TINIERSHAREPREP_H_
#define GC_TINIERSHAREPREP_H_
#include "Protocols/ReplicatedPrep.h"
#include "OT/NPartyTripleGenerator.h"
#include "ShareThread.h"
#include "PersonalPrep.h"
namespace GC
{
template<class T> class TinierPrep;
template<class T> class TinierSecret;
template<class T>
class TinierSharePrep : public PersonalPrep<T>
{
typename T::TripleGenerator* triple_generator;
typename T::whole_type::TripleGenerator* real_triple_generator;
MascotParams params;
typedef typename T::whole_type secret_type;
void buffer_triples();
void buffer_squares() { throw not_implemented(); }
void buffer_bits();
void buffer_inverses() { throw not_implemented(); }
void buffer_inputs(int player);
void buffer_secret_triples();
void init_real(Player& P);
public:
TinierSharePrep(DataPositions& usage, int input_player =
PersonalPrep<T>::SECURE);
TinierSharePrep(SubProcessor<T>*, DataPositions& usage);
~TinierSharePrep();
void set_protocol(typename T::Protocol& protocol);
};
}
#endif /* GC_TINIERSHAREPREP_H_ */