mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 22:17:57 -05:00
29 lines
835 B
C++
29 lines
835 B
C++
#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
|
|
|