35 namespace PrivateRecommendations {
PaillierCiphertext Ciphertext
Provide public access to the T_Ciphertext type.
const std::shared_ptr< SecureMultiplicationClient< Paillier > > & GetSecureMultiplicationClient() const
Getter for this->secureMultiplicationClient.
BigInteger SecureDecryption(const Paillier::Ciphertext &input) const
Decrypts a blinded Paillier ciphertext.
const T_PublicKey & GetPublicKey() const
Public key getter.
virtual BigInteger DecryptInteger(const Ciphertext &ciphertext) const
Decrypt number.
Definition of class PrivacyServiceProvider.
virtual bool GenerateKeys()
The public key container structure for the Dgk cryptosystem.
PrivacyServiceProvider()
Default constructor.
std::shared_ptr< const ServiceProvider > serviceProvider
A reference to the ServiceProvider.
std::shared_ptr< SecureMultiplicationClient< Paillier > > secureMultiplicationClient
A reference to the SecureMultiplicationClient.
void SetServiceProvider(const std::shared_ptr< const ServiceProvider > &serviceProvider)
Sets a reference to the Privacy Service Provider.
const std::shared_ptr< SecureComparisonClient > & GetSecureComparisonClient() const
Getter for this->secureComparisonClient.
const PaillierPublicKey & GetPaillierPublicKey() const
Getter for the Paillier crypto provider public key.
std::shared_ptr< SecureComparisonClient > secureComparisonClient
A reference to the SecureComparisonClient.
const DgkPublicKey & GetDgkPublicKey() const
Getter for the DGK crypto provider public key.
Dgk dgkCryptoProvider
The DGK crypto provider.
virtual bool GenerateKeys()
Generate the public and private keys.
static const std::string configurationPath
Service Provider configuration path.
void DebugPaillierEncryption(const Paillier::Ciphertext &input) const
Decrypts and prints a Paillier encrypted integer.
Paillier paillierCryptoProvider
The Paillier crypto provider.
Definition of class ServiceProvider.
The public key container structure for the Paillier cryptosystem.