mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 05:57:57 -05:00
41 lines
774 B
C++
41 lines
774 B
C++
/*
|
|
* PairwiseMachine.h
|
|
*
|
|
*/
|
|
|
|
#ifndef FHEOFFLINE_PAIRWISEMACHINE_H_
|
|
#define FHEOFFLINE_PAIRWISEMACHINE_H_
|
|
|
|
#include "FHEOffline/PairwiseGenerator.h"
|
|
#include "FHEOffline/SimpleMachine.h"
|
|
#include "FHEOffline/PairwiseSetup.h"
|
|
|
|
class PairwiseMachine : public MachineBase
|
|
{
|
|
public:
|
|
PairwiseSetup<FFT_Data> setup_p;
|
|
PairwiseSetup<P2Data> setup_2;
|
|
Player& P;
|
|
|
|
vector<FHE_PK> other_pks;
|
|
FHE_PK& pk;
|
|
FHE_SK sk;
|
|
vector<Ciphertext> enc_alphas;
|
|
|
|
PairwiseMachine(Player& P);
|
|
PairwiseMachine(int argc, const char** argv);
|
|
|
|
void init();
|
|
|
|
template <class FD>
|
|
void setup_keys();
|
|
|
|
template <class T>
|
|
void set_mac_key(T alphai);
|
|
|
|
template <class FD>
|
|
PairwiseSetup<FD>& setup();
|
|
};
|
|
|
|
#endif /* FHEOFFLINE_PAIRWISEMACHINE_H_ */
|