SeComLib
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
random_provider.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 */
30 #ifndef RANDOM_PROVIDER_HEADER_GUARD
31 #define RANDOM_PROVIDER_HEADER_GUARD
32 
33 //this header also includes the 3rd party library specific headers
34 //#include "big_integer.h"
35 #include "random_provider_base.h"
36 
37 //MPIR is compatible with GMPs functions
38 #if defined(LIB_GMP) || defined(LIB_MPIR)
39  #include "random_provider_gmp.h"
40 #endif
41 
42 namespace SeComLib {
43 namespace Core {
44  //MPIR is compatible with GMPs functions
45  #if defined(LIB_GMP) || defined(LIB_MPIR)
46  typedef RandomProviderBase<RandomProviderGmp> RandomProvider;
48  #endif
49 }//namespace Core
50 }//namespace SeComLib
51 
52 #endif//RANDOM_PROVIDER_HEADER_GUARD
Definition of class RandomProviderGmp.
Definition of class RandomProviderBase.