35 namespace SecureExtremumSelection {
45 testVectorLength(Utils::Config::GetInstance().GetParameter<size_t>(configurationPath +
".testVectorLength")),
46 l(Utils::Config::GetInstance().GetParameter<size_t>(configurationPath +
".l")) {
66 std::cout <<
"Test vector:" << std::endl;
PaillierCiphertext Ciphertext
Provide public access to the T_Ciphertext type.
const std::shared_ptr< SecureExtremumSelectionClient< SecureComparisonServer, SecureComparisonClient > > & GetSecureExtremumSelectionClient() const
Getter for this->secureExtremumSelectionClient.
Definition of class Server.
virtual BigInteger DecryptInteger(const Ciphertext &ciphertext) const
Decrypt number.
virtual bool GenerateKeys()
void DebugPaillierEncryption(const Paillier::Ciphertext &input) const
Decrypts and prints a Paillier encrypted integer.
static const std::string configurationPath
Service Provider configuration path.
virtual T_Ciphertext EncryptInteger(const BigInteger &plaintext) const
Encrypt an integer and apply randomization.
Definition of class Client.
std::shared_ptr< SecureExtremumSelectionClient< SecureComparisonServer, SecureComparisonClient > > secureExtremumSelectionClient
A reference to the SecureExtremumSelectionClient.
void SetServer(const std::shared_ptr< const Server > &server)
Sets a reference to the Privacy Service Provider.
Dgk dgkCryptoProvider
The DGK crypto provider.
Client()
Default constructor.
void StartSimulation()
Starts the simulation.
Paillier paillierCryptoProvider
The Paillier crypto provider.
virtual bool GenerateKeys()
Generate the public and private keys.
const size_t testVectorLength
The length of the test vector.
std::vector< Paillier::Ciphertext > testVector
The test vector.
std::shared_ptr< const Server > server
A reference to the Server.