-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLaFServer.h
More file actions
35 lines (28 loc) · 730 Bytes
/
LaFServer.h
File metadata and controls
35 lines (28 loc) · 730 Bytes
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
#ifndef LAF_LAFSERVER_H
#define LAF_LAFSERVER_H
#include <string>
#include <map>
#include <vector>
using std::string;
using std::vector;
using std::map;
class LaFServer
{
public:
LaFServer(const string &server_ip, int port);
void Run();
private:
string server_ip;
int port;
int ServerSockInit_();
void Init_KeyExchange_SavePk_(int sock);
void Init_KeyExchange_DistPk_(int sock);
void Init_KeyExchange_DistCip_(int sock);
void Init_ShareTwoMasks_(int sock);
void MaskInputs_(int sock);
void Recover_Init_(int sock);
void Cons_KeyExchange_SavePk_(int sock);
void Cons_KeyExchange_DistPk_(int sock);
void Cons_KeyExchange_DistCip_(int sock);
};
#endif //LAF_LAFSERVER_H