#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 < SecureComparisonClient > & | GetSecureComparisonClient () const |
| Getter for this->secureComparisonClient. 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. | |
|
std::shared_ptr < SecureComparisonClient > | secureComparisonClient |
| A reference to the SecureComparisonClient. | |
Static Private Attributes | |
| static const std::string | configurationPath |
| Service Provider configuration path. More... | |
Definition at line 51 of file secure_face_recognition/client.h.
| SeComLib::SecureFaceRecognition::Client::Client | ( | ) |
Default constructor.
Generates the Paillier and DGK keys.
Definition at line 44 of file secure_face_recognition/client.cpp.
| void SeComLib::SecureFaceRecognition::Client::DebugPaillierEncryption | ( | const Paillier::Ciphertext & | input | ) | const |
Decrypts and prints a Paillier encrypted integer.
| input | a Paillier encrypted integer |
Definition at line 84 of file secure_face_recognition/client.cpp.
| const std::shared_ptr< SecureComparisonClient > & SeComLib::SecureFaceRecognition::Client::GetSecureComparisonClient | ( | ) | const |
Getter for this->secureComparisonClient.
Definition at line 77 of file secure_face_recognition/client.cpp.
| void SeComLib::SecureFaceRecognition::Client::SetServer | ( | const std::shared_ptr< const Server > & | server | ) |
Sets a reference to the Privacy Service Provider.
| server | a Server instance |
Definition at line 69 of file secure_face_recognition/client.cpp.
| void SeComLib::SecureFaceRecognition::Client::StartSimulation | ( | ) |
Starts the simulation.
Prints \( a < b ? 0 : 1 \)
Print the comparison result
Definition at line 56 of file secure_face_recognition/client.cpp.
|
staticprivate |
Service Provider configuration path.
Set the configuration path.
Definition at line 85 of file secure_face_recognition/client.h.
1.8.6