curves/edwards.hpp
Go to the documentation of this file.
1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2020-2021 Mikhail Komarov <nemo@nil.foundation>
3 // Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
4 // Copyright (c) 2020-2021 Ilias Khairullin <ilias@nil.foundation>
5 //
6 // MIT License
7 //
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
9 // of this software and associated documentation files (the "Software"), to deal
10 // in the Software without restriction, including without limitation the rights
11 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 // copies of the Software, and to permit persons to whom the Software is
13 // furnished to do so, subject to the following conditions:
14 //
15 // The above copyright notice and this permission notice shall be included in all
16 // copies or substantial portions of the Software.
17 //
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 // SOFTWARE.
25 //---------------------------------------------------------------------------//
26 
27 #ifndef CRYPTO3_ALGEBRA_CURVES_EDWARDS_HPP
28 #define CRYPTO3_ALGEBRA_CURVES_EDWARDS_HPP
29 
34 
35 // #include <nil/crypto3/algebra/curves/detail/forms/edwards/coordinates.hpp>
37 
38 // #include <nil/crypto3/algebra/pairing/edwards.hpp>
39 // #include <nil/crypto3/algebra/pairing/detail/edwards/functions.hpp>
40 
41 namespace nil {
42  namespace crypto3 {
43  namespace algebra {
44  namespace curves {
45 
50  template<std::size_t Version>
51  class edwards {
52 
54 
55  public:
58 
59  template<typename Coordinates = coordinates::inverted, typename Form = forms::twisted_edwards>
61 
62  template<typename Coordinates = coordinates::inverted, typename Form = forms::twisted_edwards>
64 
65  // typedef typename pairing::pairing_policy<edwards<Version>,
66  // pairing::detail::edwards_pairing_functions<Version>>
67  // pairing;
68 
70 
71  constexpr static const bool has_affine_pairing = false;
72  };
73 
75 
76  } // namespace curves
77  } // namespace algebra
78  } // namespace crypto3
79 } // namespace nil
80 
81 #endif // CRYPTO3_ALGEBRA_CURVES_EDWARDS_HPP
edwards< 183 > edwards_183
Definition: curves/edwards.hpp:74
Definition: pair.hpp:31
A struct representing a group G1 of Edwards curve.
Definition: edwards/g1.hpp:51
A struct representing a group G2 of Edwards curve.
Definition: edwards/g2.hpp:47
A struct representing details about base and scalar fields.
Definition: curves/detail/edwards/types.hpp:61
typename fields::fp6_2over3< base_field_type > gt_field_type
Definition: curves/detail/edwards/types.hpp:67
A struct representing a Edwards curve, providing 128 bits of security.
Definition: curves/edwards.hpp:51
typename detail::edwards_g2< Version, Form, Coordinates > g2_type
Definition: curves/edwards.hpp:63
typename detail::edwards_g1< Version, Form, Coordinates > g1_type
Definition: curves/edwards.hpp:60
constexpr static const bool has_affine_pairing
Definition: curves/edwards.hpp:71
policy_type::gt_field_type gt_type
Definition: curves/edwards.hpp:69
policy_type::scalar_field_type scalar_field_type
Definition: curves/edwards.hpp:57
policy_type::base_field_type base_field_type
Definition: curves/edwards.hpp:56
IETF IPsec groups.
Definition: edwards/base_field.hpp:46
IETF IPsec groups.
Definition: edwards/scalar_field.hpp:46