#include <server.h>
Public Member Functions | |
Server (const PaillierPublicKey &paillierPublicKey, const DgkPublicKey &dgkPublicKey) | |
Constructor. More... | |
~Server () | |
Destructor - void implementation. | |
Paillier::Ciphertext | ComputeMinimum (std::vector< Paillier::Ciphertext > &input) const |
Secure minimum evaluation. More... | |
Paillier::Ciphertext | ComputeMaximum (std::vector< Paillier::Ciphertext > &input) const |
Secure maximum evaluation. More... | |
void | SetClient (const std::shared_ptr< const Client > &client) |
Sets a reference to the Privacy Service Provider. More... | |
const std::shared_ptr < SecureExtremumSelectionServer < SecureComparisonServer, SecureComparisonClient > > & | GetSecureExtremumSelectionServer () const |
Getter for this->secureExtremumSelectionServer. More... | |
Private Member Functions | |
Server (Server const &) | |
Copy constructor - not implemented. | |
Server | operator= (Server const &) |
Copy assignment operator - not implemented. | |
Private Attributes | |
std::weak_ptr< const Client > | client |
A reference to the Client. | |
Paillier | paillierCryptoProvider |
Paillier crypto provider. | |
Dgk | dgkCryptoProvider |
DGK crypto provider. | |
const std::shared_ptr < SecureExtremumSelectionServer < SecureComparisonServer, SecureComparisonClient > > | secureExtremumSelectionServer |
A reference to the SecureExtremumSelectionServer. | |
Static Private Attributes | |
static const std::string | configurationPath |
Service Provider configuration path. More... | |
Definition at line 62 of file secure_extremum_selection/server.h.
SeComLib::SecureExtremumSelection::Server::Server | ( | const PaillierPublicKey & | paillierPublicKey, |
const DgkPublicKey & | dgkPublicKey | ||
) |
Constructor.
paillierPublicKey | The Paillier public key |
dgkPublicKey | The DGK public key |
Definition at line 45 of file secure_extremum_selection/server.cpp.
Paillier::Ciphertext SeComLib::SecureExtremumSelection::Server::ComputeMaximum | ( | std::vector< Paillier::Ciphertext > & | items | ) | const |
Secure maximum evaluation.
items | encrypted input vector |
Definition at line 63 of file secure_extremum_selection/server.cpp.
Paillier::Ciphertext SeComLib::SecureExtremumSelection::Server::ComputeMinimum | ( | std::vector< Paillier::Ciphertext > & | items | ) | const |
Secure minimum evaluation.
items | encrypted input vector |
Definition at line 55 of file secure_extremum_selection/server.cpp.
const std::shared_ptr< SecureExtremumSelectionServer< SecureComparisonServer, SecureComparisonClient > > & SeComLib::SecureExtremumSelection::Server::GetSecureExtremumSelectionServer | ( | ) | const |
Getter for this->secureExtremumSelectionServer.
Definition at line 78 of file secure_extremum_selection/server.cpp.
void SeComLib::SecureExtremumSelection::Server::SetClient | ( | const std::shared_ptr< const Client > & | client | ) |
Sets a reference to the Privacy Service Provider.
client | a Client instance |
Definition at line 70 of file secure_extremum_selection/server.cpp.
|
staticprivate |
Service Provider configuration path.
Set the configuration path.
Definition at line 96 of file secure_extremum_selection/server.h.