Files
MP-SPDZ/FHEOffline/Verifier.h
Marcel Keller cc0711c224 MP-SPDZ.
2018-10-11 17:20:26 +11:00

33 lines
817 B
C++

#ifndef _Verifier
#define _Verifier
#include "Proof.h"
/* Defines the Verifier */
template <class FD, class S>
class Verifier
{
AddableVector<S> z;
AddableMatrix<S> t;
const Proof& P;
public:
Verifier(const Proof& proof);
void Stage_2(const vector<int>& e,
AddableVector<Ciphertext>& c, octetStream& ciphertexts,
octetStream& cleartexts,const FHE_PK& pk,bool Diag,bool binary=false);
/* This is the non-interactive version using the ROM
- Creates space for all output values
- Diag flag mirrors that in Prover
*/
void NIZKPoK(AddableVector<Ciphertext>& c,octetStream& ciphertexts,octetStream& cleartexts,
const FHE_PK& pk,bool Diag,bool binary=false);
size_t report_size(ReportType type) { return z.report_size(type) + t.report_size(type); }
};
#endif