#include <client.h>
Public Member Functions | |
Client () | |
Default constructor. More... | |
~Client () | |
Destructor - void implementation. | |
void | StartSimulation () |
Starts the simulation. More... | |
void | SetServer (const std::shared_ptr< const Server > &server) |
Sets a reference to the Privacy Service Provider. More... | |
const std::shared_ptr < SecureExtremumSelectionClient < SecureComparisonServer, SecureComparisonClient > > & | GetSecureExtremumSelectionClient () const |
Getter for this->secureExtremumSelectionClient. More... | |
void | DebugPaillierEncryption (const Paillier::Ciphertext &input) const |
Decrypts and prints a Paillier encrypted integer. More... | |
Public Attributes | |
Paillier | paillierCryptoProvider |
The Paillier crypto provider. | |
Dgk | dgkCryptoProvider |
The DGK crypto provider. | |
Private Member Functions | |
Client (Client const &) | |
Copy constructor - not implemented. | |
Client | operator= (Client const &) |
Copy assignment operator - not implemented. | |
Private Attributes | |
std::shared_ptr< const Server > | server |
A reference to the Server. | |
const size_t | testVectorLength |
The length of the test vector. | |
const size_t | l |
Bitsize of test vector elements. | |
std::vector< Paillier::Ciphertext > | testVector |
The test vector. | |
std::shared_ptr < SecureExtremumSelectionClient < SecureComparisonServer, SecureComparisonClient > > | secureExtremumSelectionClient |
A reference to the SecureExtremumSelectionClient. | |
Static Private Attributes | |
static const std::string | configurationPath |
Service Provider configuration path. More... | |
Definition at line 62 of file secure_extremum_selection/client.h.
SeComLib::SecureExtremumSelection::Client::Client | ( | ) |
Default constructor.
Generates the Paillier and DGK keys.
Definition at line 44 of file secure_extremum_selection/client.cpp.
void SeComLib::SecureExtremumSelection::Client::DebugPaillierEncryption | ( | const Paillier::Ciphertext & | input | ) | const |
Decrypts and prints a Paillier encrypted integer.
input | a Paillier encrypted integer |
Definition at line 98 of file secure_extremum_selection/client.cpp.
const std::shared_ptr< SecureExtremumSelectionClient< SecureComparisonServer, SecureComparisonClient > > & SeComLib::SecureExtremumSelection::Client::GetSecureExtremumSelectionClient | ( | ) | const |
Getter for this->secureExtremumSelectionClient.
Definition at line 91 of file secure_extremum_selection/client.cpp.
void SeComLib::SecureExtremumSelection::Client::SetServer | ( | const std::shared_ptr< const Server > & | server | ) |
Sets a reference to the Privacy Service Provider.
server | a Server instance |
Definition at line 83 of file secure_extremum_selection/client.cpp.
void SeComLib::SecureExtremumSelection::Client::StartSimulation | ( | ) |
Starts the simulation.
Generates a random test vector and computes the minimum and the maximum
Populate the test vector with random encrypted values
Compute extrema
Definition at line 58 of file secure_extremum_selection/client.cpp.
|
staticprivate |
Service Provider configuration path.
Set the configuration path.
Definition at line 105 of file secure_extremum_selection/client.h.