forked from data61/MP-SPDZ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReshare.h
28 lines (21 loc) · 835 Bytes
/
Reshare.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
#ifndef _Reshare
#define _Reshare
/* The procedure for the Reshare protocol
* Input is a ciphertext cm and a flag NewCiphertext
* Output is a Ring_Element and possibly a ciphertext cc
*/
#include "FHE/Ciphertext.h"
#include "Networking/Player.h"
#include "FHEOffline/EncCommit.h"
template <class FD> class DistDecrypt;
template<class T,class FD,class S>
void Reshare(Plaintext<T,FD,S>& m,Ciphertext& cc,
const Ciphertext& cm,bool NewCiphertext,
const Player& P,EncCommitBase<T,FD,S>& EC,
const FHE_PK& pk,const FHE_SK& share);
template<class T,class FD,class S>
void Reshare(Plaintext<T,FD,S>& m,Ciphertext& cc,
const Ciphertext& cm,bool NewCiphertext,
const Player& P,EncCommitBase<T,FD,S>& EC,
const FHE_PK& pk,DistDecrypt<FD>& dd);
#endif