35 namespace SecureFaceRecognition {
46 paillierCryptoProvider(paillierPublicKey),
47 dgkCryptoProvider(dgkPublicKey),
48 secureComparisonServer(std::make_shared<
SecureComparisonServer>(paillierCryptoProvider, dgkCryptoProvider, configurationPath)) {
PaillierCiphertext Ciphertext
Provide public access to the T_Ciphertext type.
std::weak_ptr< const Client > client
A reference to the Client.
void SetClient(const std::shared_ptr< const Client > &client)
Sets a reference to the Privacy Service Provider.
Paillier::Ciphertext SecureComparison(const Paillier::Ciphertext &a, const Paillier::Ciphertext &b) const
Computes the relation between the inputs.
The public key container structure for the Dgk cryptosystem.
Server(const PaillierPublicKey &paillierPublicKey, const DgkPublicKey &dgkPublicKey)
Constructor.
Definition of class Client.
Secure Comparison Server.
static const std::string configurationPath
Service Provider configuration path.
const std::shared_ptr< SecureComparisonServer > & GetSecureComparisonServer() const
Getter for this->secureComparisonServer.
const std::shared_ptr< SecureComparisonServer > secureComparisonServer
A reference to the SecureComparisonServer.
Definition of class Server.
The public key container structure for the Paillier cryptosystem.