Clearmatics Libff  0.1
C++ library for Finite Fields and Elliptic Curves
ec_pp.hpp
Go to the documentation of this file.
1 
13 #ifndef EC_PP_HPP_
14 #define EC_PP_HPP_
15 
16 /************************ Pick the elliptic curve ****************************/
17 
18 #ifdef CURVE_ALT_BN128
19 #define LIBFF_DEFAULT_EC_PP_DEFINED
21 namespace libff
22 {
23 typedef alt_bn128_pp default_ec_pp;
24 } // namespace libff
25 #endif
26 
27 #ifdef CURVE_BN128
28 #define LIBFF_DEFAULT_EC_PP_DEFINED
30 namespace libff
31 {
32 typedef bn128_pp default_ec_pp;
33 } // namespace libff
34 #endif
35 
36 #ifdef CURVE_EDWARDS
37 #define LIBFF_DEFAULT_EC_PP_DEFINED
39 namespace libff
40 {
41 typedef edwards_pp default_ec_pp;
42 } // namespace libff
43 #endif
44 
45 #ifdef CURVE_MNT4
46 #define LIBFF_DEFAULT_EC_PP_DEFINED
48 namespace libff
49 {
50 typedef mnt4_pp default_ec_pp;
51 } // namespace libff
52 #endif
53 
54 #ifdef CURVE_MNT6
55 #define LIBFF_DEFAULT_EC_PP_DEFINED
57 namespace libff
58 {
59 typedef mnt6_pp default_ec_pp;
60 } // namespace libff
61 #endif
62 
63 #ifdef CURVE_BLS12_377
64 #define LIBFF_DEFAULT_EC_PP_DEFINED
66 namespace libff
67 {
68 typedef bls12_377_pp default_ec_pp;
69 } // namespace libff
70 #endif
71 
72 #ifdef CURVE_BW6_761
73 #define LIBFF_DEFAULT_EC_PP_DEFINED
75 namespace libff
76 {
77 typedef bw6_761_pp default_ec_pp;
78 } // namespace libff
79 #endif
80 
81 #ifndef LIBFF_DEFAULT_EC_PP_DEFINED
82 #error You must define one of the CURVE_* symbols to pick a curve for pairings.
83 #endif
84 
85 #endif // EC_PP_HPP_
libff
Definition: ffi.cpp:8
mnt4_pp.hpp
alt_bn128_pp.hpp
bls12_377_pp.hpp
edwards_pp.hpp
bw6_761_pp.hpp
bn128_pp.hpp
mnt6_pp.hpp