SeComLib
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
secure_extremum_selection_client.h
Go to the documentation of this file.
1 /*
2 SeComLib
3 Copyright 2012-2013 TU Delft, Information Security & Privacy Lab (http://isplab.tudelft.nl/)
4 
5 Contributors:
6 Inald Lagendijk (R.L.Lagendijk@TUDelft.nl)
7 Mihai Todor (todormihai@gmail.com)
8 Thijs Veugen (P.J.M.Veugen@tudelft.nl)
9 Zekeriya Erkin (z.erkin@tudelft.nl)
10 
11 Licensed under the Apache License, Version 2.0 (the "License");
12 you may not use this file except in compliance with the License.
13 You may obtain a copy of the License at
14 
15 http://www.apache.org/licenses/LICENSE-2.0
16 
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22 */
29 #ifndef SECURE_EXTREMUM_SELECTION_CLIENT_HEADER_GUARD
30 #define SECURE_EXTREMUM_SELECTION_CLIENT_HEADER_GUARD
31 
32 //include our headers
33 #include "utils/config.h"
34 #include "big_integer.h"
35 #include "random_provider.h"
36 #include "randomizer_cache.h"
37 #include "paillier.h"
38 #include "dgk.h"
40 
42 
43 namespace SeComLib {
44 namespace Core {
45  //forward-declare required classes
46  template <typename T_SecureComparisonServer, typename T_SecureComparisonClient>
48 
54  template <typename T_SecureComparisonServer, typename T_SecureComparisonClient>
56  public:
58  SecureExtremumSelectionClient (const Paillier &paillierCryptoProvider, const Dgk &dgkCryptoProvider, const std::string &configurationPath);
59 
62 
65 
67  const std::shared_ptr<T_SecureComparisonClient> &GetSecureComparisonClient () const;
68 
70  const std::shared_ptr<SecureMultiplicationClient<Paillier>> &GetSecureMultiplicationClient () const;
71 
72  private:
75 
78 
80  std::shared_ptr<const SecureExtremumSelectionServer<T_SecureComparisonServer, T_SecureComparisonClient>> secureExtremumSelectionServer;
81 
83  const std::shared_ptr<T_SecureComparisonClient> secureComparisonClient;
84 
86  const std::shared_ptr<SecureMultiplicationClient<Paillier>> secureMultiplicationClient;
87 
90 
93  };
94 }//namespace Core
95 }//namespace SeComLib
96 
97 //Separate the implementation from the declaration of template methods
99 
100 #endif//SECURE_EXTREMUM_SELECTION_CLIENT_HEADER_GUARD
const std::shared_ptr< SecureMultiplicationClient< Paillier > > secureMultiplicationClient
A reference to the SecureMultiplicationClient.
Implementation of the public-key DGK Cryptosystem.
Definition: dgk.h:104
Definition of class Dgk.
~SecureExtremumSelectionClient()
Destructor - void implementation.
SecureExtremumSelectionClient operator=(SecureExtremumSelectionClient const &)
Copy assignment operator - not implemented.
const Dgk & dgkCryptoProvider
Reference to the DGK crypto provider.
Definition of template class RandomizerCache.
const std::shared_ptr< T_SecureComparisonClient > secureComparisonClient
A reference to the SecureComparisonClient.
Defines BigInteger.
const Paillier & paillierCryptoProvider
Reference to the Paillier crypto provider.
Implementation of template members from class SecureExtremumSelectionClient. To be included in secure...
Definition of class Config.
Definition of template class SecureExtremumSelectionServer.
const std::shared_ptr< T_SecureComparisonClient > & GetSecureComparisonClient() const
Getter for this->secureComparisonClient.
Definition of template class SecureMultiplicationServer.
SecureExtremumSelectionClient(const Paillier &paillierCryptoProvider, const Dgk &dgkCryptoProvider, const std::string &configurationPath)
Constructor.
Implementation of the public-key Paillier Cryptosystem.
Definition: paillier.h:103
std::shared_ptr< const SecureExtremumSelectionServer< T_SecureComparisonServer, T_SecureComparisonClient > > secureExtremumSelectionServer
A reference to the SecureExtremumSelectionServer.
const std::shared_ptr< SecureMultiplicationClient< Paillier > > & GetSecureMultiplicationClient() const
Getter for this->secureMultiplicationClient.
Defines RandomProvider.
Definition of class Paillier.
void SetServer(const std::shared_ptr< SecureExtremumSelectionServer< T_SecureComparisonServer, T_SecureComparisonClient >> &secureExtremumSelectionServer)
Setter for this->secureExtremumSelectionServer.