mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-08 21:18:03 -05:00
27 lines
693 B
C++
27 lines
693 B
C++
/*
|
|
* SimpleDistDecrypt.h
|
|
*
|
|
*/
|
|
|
|
#ifndef FHEOFFLINE_SIMPLEDISTDECRYPT_H_
|
|
#define FHEOFFLINE_SIMPLEDISTDECRYPT_H_
|
|
|
|
#include "FHEOffline/DistDecrypt.h"
|
|
#include "FHEOffline/DataSetup.h"
|
|
|
|
template <class FD>
|
|
class SimpleDistDecrypt : public DistDecrypt<FD>
|
|
{
|
|
public:
|
|
SimpleDistDecrypt(const Player& P, const PartSetup<FD>& setup) :
|
|
DistDecrypt<FD>(P, setup.sk, setup.pk, setup.FieldD) {}
|
|
|
|
void intermediate_step();
|
|
void reshare(Plaintext<typename FD::T, FD, typename FD::S>& m,
|
|
const Ciphertext& cm,
|
|
EncCommitBase<typename FD::T, FD, typename FD::S>& EC);
|
|
Plaintext_<FD> reshare(const Ciphertext& cm);
|
|
};
|
|
|
|
#endif /* FHEOFFLINE_SIMPLEDISTDECRYPT_H_ */
|