SeComLib
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
big_integer.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 BIG_INTEGER_HEADER_GUARD
31 #define BIG_INTEGER_HEADER_GUARD
32 
33 #include "big_integer_base.h"
34 
35 //MPIR is compatible with GMPs functions
36 #if defined(LIB_GMP) || defined(LIB_MPIR)
37  #include "big_integer_gmp.h"
38 #endif
39 
40 namespace SeComLib {
41 namespace Core {
42  //MPIR is compatible with GMPs functions
43  #if defined(LIB_GMP) || defined(LIB_MPIR)
44  typedef BigIntegerBase<BigIntegerGmp> BigInteger;
46  #else
47  #error No BigInteger implementation found
48  #endif
49 
50 }//namespace Core
51 }//namespace SeComLib
52 
53 #endif//BIG_INTEGER_HEADER_GUARD
Definition of class BigIntegerBase.
Definition of class BigIntegerGmp.