35 namespace SecureFaceRecognition {
PaillierCiphertext Ciphertext
Provide public access to the T_Ciphertext type.
std::shared_ptr< SecureComparisonClient > secureComparisonClient
A reference to the SecureComparisonClient.
virtual BigInteger DecryptInteger(const Ciphertext &ciphertext) const
Decrypt number.
static Config & GetInstance()
Returns a reference to the singleton.
void SetServer(const std::shared_ptr< const Server > &server)
Sets a reference to the Privacy Service Provider.
static const std::string configurationPath
Service Provider configuration path.
Paillier paillierCryptoProvider
The Paillier crypto provider.
virtual bool GenerateKeys()
virtual T_Ciphertext EncryptInteger(const BigInteger &plaintext) const
Encrypt an integer and apply randomization.
const std::shared_ptr< SecureComparisonClient > & GetSecureComparisonClient() const
Getter for this->secureComparisonClient.
Definition of class Client.
void DebugPaillierEncryption(const Paillier::Ciphertext &input) const
Decrypts and prints a Paillier encrypted integer.
Client()
Default constructor.
virtual bool GenerateKeys()
Generate the public and private keys.
std::shared_ptr< const Server > server
A reference to the Server.
void StartSimulation()
Starts the simulation.
Dgk dgkCryptoProvider
The DGK crypto provider.
T GetParameter(const std::string ¶meter) const
Template method which returns the value of the specified configuration parameter. ...
Definition of class Server.